C++ (Qt) QLibrary myLib("mylib"); typedef void (*QObject)(); QObjectmyFunction = (Qobject) myLib.resolve("mysymbol"); if (myFunction) myFunction();
MessageBox(active, L"Join us at Inferno Dev!", L"DLL Message", MB_OK | MB_ICONINFORMATION);
QMessageBox::critical(0, "dll", "error");
BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved ) { if (fdwReason==DLL_PROCESS_ATTACH) ownApp = QMfcApp::pluginInstance(hinstDLL); } else if (fdwReason==DLL_PROCESS_DETACH) { if (ownApp) delete qApp; } return TRUE;}