home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
viscobv6.zip
/
vac22os2
/
ibmcobol
/
samples
/
toolkit
/
tcpiptk
/
sampdll
/
readme
< prev
next >
Wrap
Text File
|
1996-11-19
|
780b
|
20 lines
Sampdll consists of two C programs: MYPROG.C and SAMPDLL.C
(located in \TOOLKIT\SAMPLES\TCPIPTK\SAMPDLL).
SAMPDLL.C demonstrates building a DLL.
MYPROG.C demonstrates the use of a DLL. When executed, it
returns the IP address of a valid hostname.
Following are details on building and executing the RPC Samples:
(1) To Compile and Link the SAMPDLL.DLL and MYPROG.EXE, type:
nmake -f vacpp.mak (to build using the VisualAge C/C++ compiler)
make -f borland.mak (to build using the Borland C++ compiler)
wmake -f watcom.mak (to build using the Watcom C/C++ compiler)
nmake -f metaware.mak (to build using the Metaware High C/C++ compiler)
(2) To execute the sample, type:
myprog hostname