Hello.
I have a PocketFrog game.
I want to display Registration dialog using MFC before my game runs.
Something like
How can I do it?
When I compile this example, MFC throws ASSERT in DoModal() function.
Evc 4.0 & Evc 3.0
thanks
I have a PocketFrog game.
I want to display Registration dialog using MFC before my game runs.
Something like
- Code:
int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE, LPTSTR, int )
{
CRegDialog dlg;
dlg.DoModal();
gInstance = hInstance;
_Module.Init( 0, hInstance );
game = new RotateSample;
game->Run();
delete game;
return 0;
}
How can I do it?
When I compile this example, MFC throws ASSERT in DoModal() function.
Evc 4.0 & Evc 3.0
thanks