#include <DLLPlatform\DLLPlatform.hpp>






int APIENTRY WinMain( HINSTANCE hInstance, HINSTANCE, LPSTR lpCmdLine, int )
{

//
// Init GameOS
//
	InitGameOS( hInstance, 0, lpCmdLine );


//
// Now run your program - surround the code with exception try/except blocks to catch errors.
//
	__try
	{



		for( int t0=0; t0<100; t0++ )
		{
			char Buffer[64];
			wsprintf( Buffer, "Number %d\n",t0 );

			OutputDebugString( Buffer );
		}


//		*(char*)0=0;		// Generate an error to test exceptions


	}
	__except( ProcessException(GetExceptionInformation()) )
	{
	}

//
// Exit app
//
	ExitGameOS();

	return 0;
}







//
// Setup the GameOS structure
//
void __stdcall GetGameOSEnvironment( char* )
{
	Environment.applicationName="Test DLLPlatform";
}

