.NET

.NET

Reply
*Tony Tanzillo
Message 1 of 3 (220 Views)

Call CWinApp::PumpMessage() from managed code?

220 Views, 2 Replies
06-18-2005 02:10 PM
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
*J. Daniel Smith
Message 2 of 3 (220 Views)

Re: Call CWinApp::PumpMessage() from managed code?

06-18-2005 02:27 PM in reply to: *Tony Tanzillo
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
*Tony Tanzillo
Message 3 of 3 (220 Views)

Re: Call CWinApp::PumpMessage() from managed code?

06-18-2005 08:01 PM in reply to: *Tony Tanzillo
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
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.