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

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 ?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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>
Wim ten BrinkSelf-employed developerCommented:
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?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CompTIA Security+

Learn the essential functions of CompTIA Security+, which establishes the core knowledge required of any cybersecurity role and leads professionals into intermediate-level cybersecurity jobs.

hsimolaAuthor Commented:
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 developerCommented:
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


It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.