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


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

in Table To:


© 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