CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2002
    Posts
    1,435

    Equivalent of COleDispatchDriver in C++ / CLR

    In an MFC project I want to add a wrapper class for an external COM object so I use "Add class from type library" and it generates an MFC class based on COleDispatchDriver. How do I do the equivalent in C++/CLR code so that I can access the methods and properties of this external object?

  2. #2
    Join Date
    Jun 2010
    Location
    Germany
    Posts
    2,675

    Re: Equivalent of COleDispatchDriver in C++ / CLR

    The "Add new Reference..." button on the project property page "Framework and References" (under "General Properties") in my VC++ 2010 Express opens a dialog that, among others, has a "COM" tab which lists all the COM objects registered on my system. I haven't actually used that myself so far, though, so I don't know whether that really is what you're looking for.

    HTH
    I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.

    This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured