PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

mfc with pocketfrog - nonstandart question

Hello.
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