Ok I am working on a hack for my game. I am wanting to open a dialog box so that I can add buttons into it. I can't get the dialog box to open please help!


Code:

#include"stdafx.h"
#include<Windows.h>
#include"resources.h"
int loaded = 0;
BOOL APIENTRY DllMain(HMODULE hModule,DWORD ul_reason_for_call,LPVOID lpReserved)
{
if (ul_reason_for_call == DLL_PROCESS_ATTACH) 
{
CreateThread(NULL,NULL,EveryFrame,NULL,NULL,NULL);
}
return TRUE;
}
DWORD WINAPI EveryFrame(LPVOID param){
HINSTANCE hInstance = GetModuleHandle(TEXT("RbxHack.dll"));
DialogBox(hInstance,MAKEINTRESOURCE(200), NULL, NULL); 
return 0;
}