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 / pipes / readme.txt < prev    next >
Encoding:
Text File  |  1996-07-23  |  2.4 KB  |  62 lines

  1. PIPES  
  2.  
  3.  
  4. The PIPE sample demonstrates how to write a program that uses pipes for 
  5. transferring data between the client and the server. The client sends a 
  6. file to the server using pipes. The server then "encodes" the data by 
  7. adding 1 to every element in the file, and then sends the file back using
  8. pipes. The pipe used in this sample program is a in/out pipe.
  9.  
  10. This program also allows the user to compile either for UNICIODE or ANSI.
  11. See section below for guidelines on how to compile for UNIOCDE
  12.  
  13.  
  14. FILES 
  15. ===== 
  16.  
  17. The directory SAMPLES\RPC\PIPES contains the following files for
  18. building the sample distributed application PIPES: 
  19.  
  20. File          Description
  21. -------------------------
  22.  
  23. README.TXT      Readme file for the pipe sample 
  24. PIPE.IDL        Interface definition language file 
  25. PIPE.ACF        Attribute configuration file 
  26. PIPEC.C         Client main program 
  27. PIPES.C         Server main program 
  28. COMMON.H        Common header file for all the files
  29. PIPEPROC.C      Remote procedures 
  30. MAKEFILE        nmake file to build 32-bit client and server app.
  31.                 for ANSI characters.
  32. MAKEFILE.UNI    nmake file to build 32-bit client and server app.
  33.                 for UNICODE characters.
  34.  
  35.  
  36. NMAKE builds the executable programs CLIENT.EXE (client) and
  37. SERVER.EXE (server).
  38.  
  39. Note: The client and server applications can run on the same 
  40. Microsoft Windows NT computer when you use different screen groups.
  41.  
  42.  
  43.  
  44. COMPILING FOR UNICODE:
  45. ======================
  46.  
  47. type nmake /f makefile.uni at the command line. This will cause
  48. the compiler to use the file MAKEFILE.UNI instead of the MAKEFILE.
  49.  
  50. The reason behind the use of TEXT, TCHAR, _TUCHAR, _tprintf, _tcscpy, _tcscmp,
  51. and _tfopen is that the program can easily be compiled to support UNICODE 
  52. (Wide characters) as well as supporting one byte ANSI characters. 
  53.  
  54.     TEXT    :   This macro will put an L in front of the string if we are
  55.                 compiling for UNICODE, and do nothing if compiling for ANSI
  56.     TCHAR    :   expands to either char or wchar_t during compilation
  57.     _TUCHAR    :   expands to either unsigned char or wchar_t during compilation
  58.     _tprintf:   expands to either printf or to wsprintf    during compilation
  59.     _tcscpy    :   expands to either strcpy or to wcscpy during compilation
  60.     _tcscmp    :   expands to either strcmp or to wcscmp during compilation
  61.     _tfopen    :   expands to either fopen or to _wfopen during compilation
  62.