Click to See Complete Forum and Search --> : MFC and Automation


April 9th, 1999, 08:33 PM
Your help will be greatly appreciated,

When using the CreateObject (or New) from a VB form to use my automation
enabled MFC application, MFC's AfxWinMain() hangs because the message loop
(Run()) never returns control to the calling VB application.

I don't know how to fix this so I'm asking around. How does MSDev do it?

Thanks,
-- Rolando
rcabrera@alum.mit.edu

Homero
May 30th, 2000, 06:33 PM
Hi,
I found this message and I'm having troubles with MFC ActiveX used with VBA. Perhaps you can help now. The description of the problem is as follows:

I've made an ATL Control to use with VBA. It's so because the ActiveX controls made with ActiveX Control Wizard generates the error 0x8000FFFF (I guess it's E_UNEXPECTED) when VBA tries to access to any method or property. But for the controls generated by ATL it's necessary to add the events manually. I've made it following the steps given in the ATL tutorial within the help. The problem, is that the VBA doesn't see the events (however, I can now access to properties and methods correctly). Moreover, the Object Examiner of VBA doesn't show these events. Both type of controls, ATL and Wizard generated, works fine with the ActiveX Test Container application regard to access of methods, properties and events. Another problem is that classwizard doesn't show the ActiveX classes for ATL controls (they are show correctly on the workspace, but not in classwizard dialog accessed by CTRL+W), why is it??

So, what's wrong with all these stuffs??

Thanks!!!!!! in advance.