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?
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