CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Posts
    3

    A DLL with modeless dialogs and ActiveX!

    I am probably making life much harder than necessary but what the heck!
    What I am trying to achieve is:

    1. A DLL which an MFC app can load dynamically.
    2. The DLL will display its own dialogs (all modeless) independant of whether
    the App's Dialog (main Window ) is visible or not
    3. One of the DLL's dialogs needs to show an ActiveX control.

    I have discovered that in order to use ActiveX the EXE must call AfxOleInit()
    I now have the problem that messages are not getting to the DLL dialogs -
    namely Keydown,etc (edits work, but tabbing around controls doesnt)

    HELP!!


  2. #2
    Join Date
    May 1999
    Posts
    1

    Re: A DLL with modeless dialogs and ActiveX!

    I find this information in the 'DLLTRACE' sample help (VC++6.0):
    The CWinApp object of a DLL, however, does not have a main message pump, as does the CWinApp object of an application. If the DLL opens modeless dialogs or has a main frame window of its own, the application's main message pump must call a routine exported by the DLL,...


  3. #3
    Join Date
    Apr 1999
    Location
    Portland, OR, USA
    Posts
    29

    Re: A DLL with modeless dialogs and ActiveX!

    You should check out the post "Tabbing Problem with ActiveX" by Curtis Harrison, at
    http://www.codeguru.net/bbs/wt/showp...collapsed&sb=5.
    It looks like you are having the same problem he had, you might find some information there to help you.

    Good luck, and happy coding,

    =================================================
    Valerie L. Bradley
    Software Engineer
    Intel Corporation

    * All opinions expressed are mine and not those of my employer.

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