home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / DirectPlay / Maze / MazeClient / Main.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-31  |  1.5 KB  |  48 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 "D3DFont.h"
  22. #include "D3DUtil.h"
  23. #include "D3DFile.h"
  24. #include "SmartVB.h"
  25. #include "MazeApp.h"
  26. #include "MazeServer.h"
  27. #include "d3dsaver.h"
  28. #include "D3DGraphics.h"
  29.  
  30.  
  31. CMazeApp     g_MazeApp;
  32. CD3DGraphics g_D3DGraphics;
  33.  
  34.  
  35. //-----------------------------------------------------------------------------
  36. // Name: 
  37. // Desc: 
  38. //-----------------------------------------------------------------------------
  39. int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE, LPSTR lpCmdLine, int )
  40. {
  41.     if( FAILED( g_MazeApp.Create( &g_D3DGraphics ) ) )
  42.         return 0;
  43.  
  44.     return g_MazeApp.Run( hInstance );
  45. }
  46.  
  47.  
  48.