• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    .NET

    Reply
    *Tony Tanzillo

    Call CWinApp::PumpMessage() from managed code?

    154 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
    Please use plain text.
    *J. Daniel Smith

    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
    Please use plain text.
    *Tony Tanzillo

    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
    Please use plain text.