CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    MFC and Automation

    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
    [email protected]



  2. #2
    Join Date
    Apr 1999
    Posts
    407

    Re: MFC and Automation

    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.


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