Call CWinApp::PumpMessage() from managed code?

Call CWinApp::PumpMessage() from managed code?

Anonymous
Not applicable
865 Views
2 Replies
Message 1 of 3

Call CWinApp::PumpMessage() from managed code?

Anonymous
Not applicable
Assuming I have a pointer returned by acedGetAcadWinApp(), is
there any way (short of an MC++ wrapper), to call this member
on the instance, from managed/unsafe C# ?

Everyone I've asked says "no". But, I'm not entirely convinced.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com
0 Likes
866 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
System.Runtime.InteropServices.CallingConvention.ThisCall looks promising, I
haven't actually used it myself.

Here's one example:
http://blogs.msdn.com/sanpil/archive/2004/07/07/175855.aspx; notice the use
of the mangled name. A Google search only returns a few hundred hits; from
that I would guess that most people use a MC++ wrapper.

Dan

"Tony Tanzillo" wrote in message
news:4878965@discussion.autodesk.com...
Assuming I have a pointer returned by acedGetAcadWinApp(), is
there any way (short of an MC++ wrapper), to call this member
on the instance, from managed/unsafe C# ?

Everyone I've asked says "no". But, I'm not entirely convinced.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com
0 Likes
Message 3 of 3

Anonymous
Not applicable
Thanks for the tip, I'll have a look.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

"J. Daniel Smith" wrote in message news:4878954@discussion.autodesk.com...
System.Runtime.InteropServices.CallingConvention.ThisCall looks promising, I
haven't actually used it myself.

Here's one example:
http://blogs.msdn.com/sanpil/archive/2004/07/07/175855.aspx; notice the use
of the mangled name. A Google search only returns a few hundred hits; from
that I would guess that most people use a MC++ wrapper.

Dan
0 Likes