You have to change :
BOOL APIENTRY DllMain(HANDLE hModule, DWORD nReason, void* pReserved)
{
return TRUE;
}
by :
HINSTANCE hInst;
HWND hWnd;
BOOL APIENTRY DllMain( HINSTANCE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved)
{
hInst = hModule;
return TRUE;
}
And call the function by :
DialogBox(hInst, MAKEINTRESOURCE(IDD_DIALOG1), NULL, NickChanger);
(in the parsecommand )
Thx to allex87 for this tip