Joel
14th October 2004 15:25 UTC
Improving DLL calls - devs, help!!!!
Hi people :)
I'm making a new plugin and the dialog that I'm display works great...
But seems that NSIS is paused at the moment of the calling...
After, the dialog (created by the plugin) is close, NSIS returns its process...
How can I display my dialog and let NSIS to continue its process?
Thanks
Takhir
14th October 2004 17:01 UTC
This may happen only if you use modal dialog.
Modeless dialog box creation:
CreateDialog | CreateDialogParam |CreateDialogIndirect
Then ShowWindow(), finally DestroyWindow()
Or show your code :)
Joel
14th October 2004 20:23 UTC
I'm using CreateWindow....
but I'll try the Modeless thing :)
Joel
14th October 2004 22:49 UTC
Keeps crashing in the last second before closes NSIS :(
Takhir
15th October 2004 08:35 UTC
this is a banner.. Do you use /NOUNLOAD in plug-in call?
Edit:
And something is wrong with parent window handle, might be better to use NULL as parent in CreateWindow. Parent handle may be not valid after some time.
Joel
15th October 2004 14:58 UTC
More or less, is a banner... I'll try NULL in hwnd of CreateWindow.
Takhir
16th October 2004 16:59 UTC
I don't know what finally you want to have, but I tested this simple script for modeless banner window with sound - looks OK even on Win98SE :)
Joel
17th October 2004 19:11 UTC
w00t!
I done it :D
It was DestroyWindow....
The plugin is about to create the standard MSI (Windows Installer) startup banner....
I'll make the last tests and I'll put it in my site to be downloadable.