MFC ActiveX and Interfaces
-
Hello All, I have MFC-based ActiveX control. I implemented other Automation objects and interfaces-CCmdTarget stuff (some creatable). Now, when trying to use the control in MFC applications, the ClassWizard does not generate wrapper for the automation objects (only the ActiveX control). This is no problem in VB test application. Is there anything extra I need to do with the *.odl file for the ClassWizard to use it effectively. VC++ compiler-based COM wrappers could be generated as usual but this is not clean and nice to has clients to do. Any help? Best regards, Paul. Paul Selormey, Bsc (Elect Eng), MSc (Mobile Communication) is currently Windows open source developer in Japan, and open for programming contract anywhere!
-
Hello All, I have MFC-based ActiveX control. I implemented other Automation objects and interfaces-CCmdTarget stuff (some creatable). Now, when trying to use the control in MFC applications, the ClassWizard does not generate wrapper for the automation objects (only the ActiveX control). This is no problem in VB test application. Is there anything extra I need to do with the *.odl file for the ClassWizard to use it effectively. VC++ compiler-based COM wrappers could be generated as usual but this is not clean and nice to has clients to do. Any help? Best regards, Paul. Paul Selormey, Bsc (Elect Eng), MSc (Mobile Communication) is currently Windows open source developer in Japan, and open for programming contract anywhere!
You should have a .tlb file which in ClassWizard you can select New Class from Type Library and it will generate the cpp/h for the type-library. Also, if you don't want to have the header/cpp files you can always do an #import. Bret Faller Odyssey Computing, Inc.
-
You should have a .tlb file which in ClassWizard you can select New Class from Type Library and it will generate the cpp/h for the type-library. Also, if you don't want to have the header/cpp files you can always do an #import. Bret Faller Odyssey Computing, Inc.
-
You should have a .tlb file which in ClassWizard you can select New Class from Type Library and it will generate the cpp/h for the type-library. Also, if you don't want to have the header/cpp files you can always do an #import. Bret Faller Odyssey Computing, Inc.
Thanks, now I get it. The ClassWizard is using the VB generated *.oca file. I used the From the Typelib and selected the *.tlb and it works. Best regards, Paul. Paul Selormey, Bsc (Elect Eng), MSc (Mobile Communication) is currently Windows open source developer in Japan, and open for programming contract anywhere!