Thank you very much for the prompt response. It is appreciated.
I would like to clarify one thing you wrote. When you say non-managed (non .NET) C++ program - does this mean the limitation is on the component side or on the VC++ Tool side?
I use Visual C++ v6.0 for an IE ActiveX control addin project. It is a legacy product that must support Windows 98 up through Windows 7. In several cases I was able to use what I believe are C# .Net components or DLL's where necessary
to support various features. Two examples:
1) To support Protected Mode in IE for Vista, I had to Load "ieframe.dll" on XP\Vista machines to use the desired API's.
2) To support the latest MS Word automation (to seamlessly print documents from Word), I used "#import MSWORD.OLB" - this is the library provided with Office 2003. After the import, I was able to use the Word automation
directly as the import made the Word namespace available,
I believe these are making use of mscoree.dll, although I could certainly be mistaken. So just to be sure, is there really no way to use this component in a C/C++ environment? If not, then why do the method prototypes for the various
classes also give a C++ version. E.g. Below is the prototype of the "JobAdded" eventhandler, and the "PrintJob" and "MonitorJobAddedEvent" properties.
public: __event EventHandler* JobAdded;
public: __property PrintJob get_PrintJob();
public: __property bool get_MonitorJobAddedEvent();
public: __property void set_MonitorJobAddedEvent( bool);
If it is possible, I just need to know how to get access to these properties and methods in my C/C++ sources. Seems like Loadlibary is one possiblity,
but I have no idea how to make the calls to set up the Event Handlers in C/C++ so that they are called from the component. Any help that you can provide,
or even if you could point me to someone that might have done it would be appreciated.