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 / wintyp / readme.txt < prev    next >
Encoding:
Text File  |  1996-07-23  |  2.7 KB  |  70 lines

  1. WINTYP  
  2.  
  3.  
  4. The WINTYP sample demonstrates how to write a program that uses RPC calls to
  5. transfer windows datatypes between the client and the server. 
  6. The client reads in a bitmap and when the user selects to modify the image,
  7. the bitmap is sent to the server, where the server is doing the modification.
  8. The bitmap is then sent back to the client, where the new bitmap is displayed.
  9.  
  10. There are two choices for manipulating the images, either to flip it, or to 
  11. find the edges in it. The find edge procedure will only work when the 
  12. screen resolution is set to 256 colors. The reason for this is that the 
  13. algorithm used in the remote procedures only works with 8 bits per pixel.
  14.  
  15. This program also allows the user to compile either for UNICODE or ANSI.
  16. See section below for guidelines on how to compile for UNICODE
  17.  
  18.  
  19. FILES 
  20. ===== 
  21.  
  22. The directory SAMPLES\RPC\WINTYP contains the following files for
  23. building the sample distributed application WINTYP: 
  24.  
  25. File          Description
  26. -------------------------
  27.  
  28. README.TXT      Readme file for the pipe sample 
  29. WINTYP.IDL      Interface definition language file 
  30. WINTYP.ACF      Attribute configuration file 
  31. CLIENT.C        Client main program 
  32. CLIENT.H        Header file specific for the client side
  33. CLIENT.RC       Resource file for the client application
  34. CLIRES.H        Resource header file
  35. SERVER.C        Server main program 
  36. COMMON.H        Common header file for all the files
  37. REMOTE.C        Remote procedures 
  38. MAKEFILE        nmake file to build 32-bit client and server app.
  39.                 for ANSI characters.
  40. MAKEFILE.UNI    nmake file to build 32-bit client and server app.
  41.                 for UNICODE characters.
  42.  
  43.  
  44. NMAKE builds the executable programs CLIENT.EXE (client) and
  45. SERVER.EXE (server).
  46.  
  47. Note: The client and server applications can run on the same 
  48. Microsoft Windows NT computer when you use different screen groups.
  49.  
  50.  
  51.  
  52. COMPILING FOR UNICODE:
  53. ======================
  54.  
  55. type nmake /f makefile.uni at the command line. This will cause
  56. the compiler to use the file MAKEFILE.UNI instead of the MAKEFILE.
  57.  
  58. The reason behind the use of TEXT, TCHAR, _TUCHAR, _tprintf, _tcscpy, 
  59. _tcscmp, and _stprintf is that these macros expand to either 
  60. regular one byte ANSI functions or to UNICODE (Wide characters) functions
  61. when they are compiled
  62.     TEXT    :   This macro will put an L in front of the string if we are 
  63.                 compiling for UNICODE
  64.     TCHAR   :   Maps to either char or wchar_t 
  65.     _TUCHAR :   Maps to either unsigned char or wchar_t 
  66.     _tprintf:   Maps to either printf or wsprintf
  67.     _stprintf:  Maps to either sprintf or swprintf
  68.     _tcscpy :   Maps to either strcpy or wcscpy
  69.     _tcscmp :   Maps to either strcmp or wcscmp
  70.