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 / callback / readme.txt < prev   
Encoding:
Text File  |  1996-01-17  |  2.9 KB  |  99 lines

  1. CALLBACK
  2.  
  3.  
  4. The CALLBACK program demonstrates the use of the callback attribute to 
  5. allow a server application to execute code on a client application. The 
  6. distributed program generates a Fibonacci number with a static callback.
  7.  
  8. The directory samples\rpc\callback contains the following files for
  9. building the sample distributed application CALLBACK:
  10.  
  11. File          Description
  12.  
  13. README.TXT      Readme file for the CALLBACK sample
  14. CALL.IDL        Interface definition language file
  15. CALL.ACF        Application configuration file
  16. CALLC.C         Client main program
  17. CALLS.C         Server main program
  18. CALLP.C         Remote procedures
  19. MAKEFILE        Nmake file to build for Windows NT or Windows 95
  20. MAKEFILE.DOS    Nmake file to build for MS-DOS
  21.  
  22. -------------------------------------------
  23. BUILDING CLIENT AND SERVER APPLICATIONS FOR
  24. MICROSOFT WINDOWS NT OR WINDOWS 95
  25. -------------------------------------------
  26.  
  27. The following environment variables should be already set for you:
  28.  
  29.   set CPU=i386
  30.   set INCLUDE=%SDKROOT%\h
  31.   set LIB=%SDKROOT%\lib
  32.   set PATH=%SDKROOT%\system32;%SDKROOT%\bin
  33.  
  34. where %SDKROOT% is the root directory for the 32-bit Windows SDK.
  35.  
  36. For mips, set CPU=mips
  37. For alpha, set CPU=alpha
  38.  
  39. Build the sample distributed application:
  40.  
  41.   nmake cleanall
  42.   nmake
  43.  
  44. This builds the executable programs callc.exe (client) and calls.exe
  45. (server).
  46.  
  47. -----------------------------------------------------------------------
  48. BUILDING THE CLIENT APPLICATION FOR MS-DOS
  49. -----------------------------------------------------------------------
  50.  
  51. After installing the Microsoft Visual C/C++ version 1.50 development
  52. environment and the 16-bit RPC SDK on a Windows NT or Windows 95
  53. computer, you can build the sample client application from Windows NT
  54. or Windows 95:
  55.  
  56.   nmake -f makefile.dos cleanall
  57.   nmake -f makefile.dos
  58.  
  59. This builds the client application callc.exe.
  60.  
  61. You may also execute the Microsoft Visual C/C++ compiler under MS-DOS.
  62. This requires a two-step build process.
  63.  
  64.   Step One: Compile the .IDL files under Windows NT or Windows 95:
  65.  
  66.      nmake -a -f makefile.dos hello.h
  67.  
  68.   Step Two: Compile the C sources (stub and application) under MS-DOS:
  69.  
  70.      nmake -f makefile.dos
  71.  
  72.  
  73.  
  74. -----------------------------------------------------------------------
  75. RUNNING THE CLIENT AND SERVER APPLICATIONS
  76. -----------------------------------------------------------------------
  77.  
  78. On the server, enter:
  79.  
  80.   calls
  81.  
  82. On the client, enter:
  83.  
  84.   net start workstation
  85.   callc
  86.  
  87. Note:  The client and server applications can run on the same Microsoft
  88. Windows NT computer when you use different screen groups.
  89.  
  90. Several command-line switches are available to change settings for this
  91. program. For a listing of the switches available from the client
  92. program, enter:
  93.  
  94.   callc -?
  95.  
  96. For a listing of switches available from the server program, enter:
  97.  
  98.   calls -?
  99.