Hi everybody,
Firstly i'm sorry for my english.
I come to u because I spend more time on this issue and Im not able to solve it.
I try to use QT inside a DLL project. But when I wrote a piece of QT code inside my C++ project, the dllStart function is not running when the DLL is launching.
If someone has an idea ?
Thx in advance.
Firstly i'm sorry for my english.
I come to u because I spend more time on this issue and Im not able to solve it.
I try to use QT inside a DLL project. But when I wrote a piece of QT code inside my C++ project, the dllStart function is not running when the DLL is launching.
Code:
#include <QApplication>
#include <QPushButton>
void DLLStart(void)
{
MessageBox(NULL, L"DLLStart!", L"DLLStart!", MB_ICONEXCLAMATION | MB_OK);
int argc = 1;
char** argv;
argv = new char*[1];
argv[0] = "toto";
try
{
//QApplication app(argc, argv);
}
catch(char* lEx)
{MessageBox(NULL, (LPCWSTR)lEx, L"DLLStart!", MB_ICONEXCLAMATION | MB_OK);}
}
If someone has an idea ?
Thx in advance.
Last edited:
