Call GUI(message box) from Dll
Hi,
I have a dll in which I need to pop up a Message box.
I do not have any QApplication as a parent. So I keep getting an error that I need to have a base GUI.
Is the base GUI really necessary?
Do I need to make an .exe file and then call the Message box from the dll?
Your help is much appreciated.
Thank you.
Re: Call GUI(message box) from Dll
Quote:
Is the base GUI really necessary?
Yes, if you want to have your DLL have a GUI - a message box is a GUI.
But the question is, do you really want your DLL to show a message box, or rather have an application which runs a gui, and links to your DLL.
When the application makes a call to the DLL when the call returns to the application you can have it return with a status, and based on that status show a message box from your application.
This will free your DLL from any dependency on GUI libs.