RaiseEvent fails from a Modal form

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Via a button on a modal form in an ActiveX dll, I trigger a RaiseEvent to be
trapped by the app that called the dll. Running from the VBIDE it works fine
but not if compiled.

This appears to be a known issue. An old suggestion of Ken Halter (thanks)
is first to hide the form. I do that and immediately re Show the modal form
after. This works but has unpleasant effects, not unsurprisingly. The
purpose of the event is to run another app & window, which must be launched
from the dll parent app. The new app's window ends up underneath the modal
window.

No doubt I can bring the new window to the front that but it's still all
going to be ugly. It's some years since Ken proffered that suggestion and
wonder if since then an alternative workaround has been discovered.

Regards,
Peter T


.



Relevant Pages

  • Re: Remove app from both device and desktop
    ... basic uninstall "stuff" reads the script and undoes everything. ... I added a setup DLL to provide a few extras. ... I don't bother to check whether my app is still running. ... application has at least one window with a unique window class name or ...
    (microsoft.public.pocketpc.developer)
  • Re: Setting up a TMessage trap
    ... It needs to be in a DLL and to send notices back to your own ... of your main window. ... memory segment to hold the handle of your app. ... delphi isn't able to create a DLL with a shared ...
    (comp.lang.pascal.delphi.misc)
  • Re: Overridden WndProc not working in some cases?
    ... Unmanaged C++ DLL ... separate thread) it seems to work fine and receives all messages. ... However if I do what I was doing before which is creating a window in ... For some reason the first message hits my app okay, ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Regular DLL & message pump: No messages recived
    ... > I'm trying to create a regular MFC DLL to use as an interface in an Win32 ... The DLL contains one window derived from CDialog and the main app ... > the message pump into the ServerUIUpdate function, ...
    (microsoft.public.vc.mfc)
  • Re: MORE Lyle Blake Info......
    ... >control with a static window beside it to show the percentage. ... The lightweight controls will be part of the DLL ... unloaded - the DLL might be unloaded without the App terminating ...
    (comp.lang.pascal.delphi.misc)