home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / netds / rpc / mandel / readme.txt < prev    next >
Encoding:
Text File  |  1996-01-17  |  3.0 KB  |  103 lines

  1. MANDEL
  2.  
  3.  
  4. The MANDEL program is a distributed fractal drawing application that uses 
  5. reference pointers, the implicit_handle attribute and handl_t primitive types.
  6.  
  7. FILES
  8. =====
  9.  
  10. The directory samples\rpc\mandel contains the following files for the
  11. sample distributed application MANDEL:
  12.  
  13. File          Description
  14.  
  15. README.TXT    Readme file for the MANDEL sample
  16. MDLRPC.IDL    Interface definition language file
  17. MDLRPC.ACF    Attribute configuration file
  18. MANDEL.C      Client main program
  19. MANDEL.H      Client global data
  20. REMOTE.C      Client code that calls remote procedures
  21. RPC.ICO       Client icon
  22. MANDEL.DEF    Client module definition file
  23. MANDEL.RC     Client resource script file
  24. SERVER.C      Server main program
  25. CALC.C        Remote procedures
  26. MAKEFILE      nmake utility for Windows NT or Windows 95
  27. MAKEFILE.WIN  nmake utility for Win 3.x
  28.  
  29. -------------------------------------------
  30. BUILDING CLIENT AND SERVER APPLICATIONS FOR
  31. MICROSOFT WINDOWS NT OR WINDOWS 95
  32. -------------------------------------------
  33.  
  34. The following environment variables should be already set for you:
  35.  
  36.   set CPU=i386
  37.   set INCLUDE=%SDKROOT%\h
  38.   set LIB=%SDKROOT%\lib
  39.   set PATH=%SDKROOT%\system32;%SDKROOT%\bin
  40.  
  41. where %SDKROOT% is the root directory for the 32-bit Windows SDK.
  42.  
  43. For mips, set CPU=mips
  44. For alpha, set CPU=alpha
  45.  
  46. Build the sample distributed application:
  47.  
  48.   nmake cleanall
  49.   nmake
  50.  
  51. This builds the executable programs client.exe and server.exe for Microsoft 
  52. Windows NT or Windows 95.
  53.  
  54. --------------------------------------------
  55. BUILDING THE CLIENT APPLICATION FOR WIN 3.X
  56. --------------------------------------------
  57.  
  58. After installing the Microsoft Visual C/C++ version 1.50 development
  59. environment and the 16-bit RPC SDK on a Windows NT or Windows 95
  60. computer, you can build the sample client application from Windows NT
  61. or Windows 95:
  62.  
  63.   nmake -f makefile.win cleanall
  64.   nmake -f makefile.win
  65.  
  66. This builds the client application client.exe.
  67.  
  68. You may also execute the Microsoft Visual C/C++ compiler under MS-DOS.
  69. This requires a two-step build process.
  70.  
  71.   Step One: Compile the .IDL files under Windows NT or Windows 95:
  72.  
  73.      nmake -a -f makefile.win yield.h
  74.  
  75.   Step Two: Compile the C sources (stub and application) under MS-DOS:
  76.  
  77.      nmake -f makefile.win
  78.  
  79. ------------------------------------------
  80. RUNNING THE CLIENT AND SERVER APPLICATIONS
  81. ------------------------------------------
  82.  
  83. On the server, enter:
  84.  
  85.   server
  86.  
  87. On the client, enter:
  88.  
  89.   net start workstation
  90.   client
  91.  
  92. Note:  The client and server applications can run on the same Microsoft 
  93. Windows NT computer when you use different screen groups. If you run the 
  94. client on the Microsoft MS-DOS and Windows computer, choose the Run
  95. command from the File menu in the Microsoft Windows 3.x Program Manager and 
  96. enter client.exe.
  97.  
  98. Several command line switches are available to change settings for the 
  99. server program. For a listing of switches available from the server program, 
  100. enter:
  101.  
  102.   server -?
  103.