home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / samples / tcpiptk / sampdll / readme < prev    next >
Text File  |  1999-05-11  |  532b  |  17 lines

  1. Sampdll consists of two C programs: MYPROG.C and SAMPDLL.C
  2. (located in \TOOLKIT\SAMPLES\TCPIPTK\SAMPDLL).
  3. SAMPDLL.C demonstrates building a DLL.
  4. MYPROG.C demonstrates the use of a DLL.  When executed, it
  5. returns the IP address of a valid hostname.
  6.  
  7. Following are details on building and executing the RPC Samples:
  8.  
  9. (1) To Compile and Link the SAMPDLL.DLL and MYPROG.EXE, type:
  10.  
  11.       nmake -f vacpp.mak         (to build using the VisualAge C/C++ compiler)
  12.  
  13. (2) To execute the sample, type:
  14.  
  15.       myprog hostname
  16.  
  17.