Delphi .DLL makes showmessage popup - how to kill it instantly

hsimola used Ask the Experts™
My program uses some .dll and that .dll causes message box, which have to be closed pressing OK button.

Calling .ddl is in formcreate part of program.

How could I kill that "showmessage" popup so that it disappears instantly or doesn't come at all ?

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2004

is it a nag-messagebox (shareware-dll)?
Give me the dll and some extra points and all will be ok ;-)
<e-mail removed from AnnieMod>
Self-employed developer
Well, if it's a modal dialog then your application might not get a chance to detect that messagebox by using FindWindow or some other technique. Normally it should not be too difficcult to find a window and send a button-press message to it. However, wouldn't it be easier to just modify that DLL to remove the offending messagebox?
Announcing the Winners!

The results are in for the 15th Annual Expert Awards! Congratulations to the winners, and thank you to everyone who participated in the nominations. We are so grateful for the valuable contributions experts make on a daily basis. Click to read more about this year’s recipients!


I disassembled .dll and can see that stupid text there.

But I don't know how to make .dll again from it.

Any good programs for that ?

Wim ten BrinkSelf-employed developer

I now wonder if you're trying to hack a shareware DLL or whatever. Keep in mind that if you don't have the source of this DLL, the owner of the DLL might not like it that you start altering it.
My proposal still in force.
Just post a message:


Chuck this on a timer and as soon as a showmessage caption ('Message'  i think) appears it will automatically close it.

You can also use closewindow in a similar fashion




Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial