Basic HTML version of Foils prepared July 5 98

Foil 149 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


/////////////////////////////////////////////////////////////////////
// Helloworld.cpp : Implementation source file for the helloworld //
// application using DirectDraw & DirectPlay //
// //
// Application : Demo application for DirectX/DirectPlay for JSU //
// summer institute //
// //
// Platform : Intel Pentium 166 MHz, WindowsNT 4.0, Visual C++ 5.0//
// //
// Author : Subhash Nair (subhash@cat.syr.edu) //
/////////////////////////////////////////////////////////////////////
#define WIN32_LEAN_AND_MEAN // For faster builds & smaller executables
#include <windows.h> // Our standard Windows header
#include <ddraw.h> // Header for DirectDraw
#include <dplay.h> // Header for DirectPlay
//Global Constants
const char *msg = "Hello World!"; //Our famous message, courtesy Kernighan & Ritchie!!
const int window_width = 640; // These 3 values for window width, window height and
const int window_height = 480; // and bits per pixel correspond to a standard display
const int bits_per_pixel = 8; // mode on most monitors
const DWORD UpdateDelay = 0; // How often our screen will be updated
const char sessionName[32] = "Welcome"; //Our session name
//Our session's Globally unique identifier
const GUID sessionGUID = { 0x6db0f1d1, 0xff0c, 0x11d1,
{ 0x9a, 0x17, 0x0, 0x0, 0xc0, 0x23, 0xca, 0xf3 } };
//The message structure we are going to send and receive
typedef struct _MESSAGE
{
int x;
int y;
}MESSAGE;
Global constants
Declaration



© 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