Click to See Complete Forum and Search --> : A DLL with modeless dialogs and ActiveX!


Stewart Ponsford
May 10th, 1999, 08:43 AM
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!!

Decerf Nicolas
May 11th, 1999, 11:49 AM
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,...

Valerie Bradley
May 11th, 1999, 12:40 PM
You should check out the post "Tabbing Problem with ActiveX" by Curtis Harrison, at
http://www.codeguru.net/bbs/wt/showpost.pl?Board=vc&Number=8075&page=4&view=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.