home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / DirectPlay / Maze / MazeConsoleClient / Main.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-31  |  1.4 KB  |  44 lines

  1. //----------------------------------------------------------------------------
  2. // File: main.cpp
  3. //
  4. // Desc: This is a DirectPlay 8 client/server sample. The client comes in two flavors.  
  5. //       A console based version, and a D3D client.  The D3D client can optionally 
  6. //       be run as screen saver by simply copying mazeclient.exe to your 
  7. //       \winnt\system32\ and renaming it to mazeclient.scr.  This will make 
  8. //       it a screen saver that will be detected by the display control panel.  
  9. //
  10. // Copyright (c) 1999-2001 Microsoft Corp. All rights reserved.
  11. //-----------------------------------------------------------------------------
  12. #define STRICT
  13. #define D3D_OVERLOADS
  14. #include <windows.h>
  15. #include <D3DX8.h>
  16. #include <dplay8.h>
  17. #include "DXUtil.h"
  18. #include "SyncObjects.h"
  19. #include "IMazeGraphics.h"
  20. #include "DummyConnector.h"
  21. #include "MazeApp.h"
  22. #include "MazeServer.h"
  23. #include "ConsoleGraphics.h"
  24. #include "MazeApp.h"
  25.  
  26.  
  27. CMazeApp         g_MazeApp;
  28. CConsoleGraphics g_ConsoleGraphics;
  29.  
  30.  
  31. //-----------------------------------------------------------------------------
  32. // Name: 
  33. // Desc: 
  34. //-----------------------------------------------------------------------------
  35. int __cdecl main( int argc, TCHAR* argv[] )
  36. {
  37.     if( FAILED( g_MazeApp.Create( &g_ConsoleGraphics ) ) )
  38.         return 0;
  39.  
  40.     return g_MazeApp.Run( 0 );
  41. }
  42.  
  43.  
  44.