Basic HTML version of Foils prepared July 5 98

Foil 163 PPT Slide

From FMS: Forces Modeling and Simulation Handout JSU HPC Summer Institute for Undergraduates, Jackson MS -- June 15 1998. by Wojtek Furmanski, Subhash Nair, Tom Pulikal


// Helper function - Creates a player
static HRESULT MakePlayer()
{
HRESULT hr;
// Create a player
hr = lpDirectPlay1->CreatePlayer(&playerID, "Billy", "Bill Clinton", NULL);
if(FAILED(hr))
::MessageBox(NULL,"CreatePlayer Failed", "HelloWorld", MB_OK);
return(hr);
}
// Clean up before exiting
static void CleanUp()
{
//Done with DirectDraw
if( lpFrontBuffer )
{
lpFrontBuffer->Release();
lpFrontBuffer = NULL;
}
lpdd->RestoreDisplayMode();
lpdd->Release();
//Done with DirectPlay
if (lpDirectPlay1)
{
lpDirectPlay1->DestroyPlayer(playerID);
lpDirectPlay1->Close();
lpDirectPlay1->Release();
}
PostQuitMessage( 0 );
}
MakePlayer():Creates a new player
CleanUp(): Releases DirectX objects & buffers



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sat Nov 28 1998