The sample programs SORT.PLI and DRIVER1.PLI show how
to build and use a DLL that contains three different sorting functions.
These functions keep track of the number of swap and compare operations
required to do the sorting.
The files for the sample program are:
- SORT.PLI
- The source file for the DLL.
- SORT.DEF
- The module definition file for the DLL.
- DRIVER1.DEF
- The module definition file for the executable.
- EXTDCL.CPY
- The user include file.
- DRIVER1.PLI
- The main program that uses SORT.DLL.
If you installed the sample programs, these files are found
in the ..\SAMPLES\ directory.
Use the following sequence of commands to compile, link, and
run the program:
- pli sort
- ilib /geni sort.def
- ilink /dll /out:sort.dll sort.obj sort.exp
- pli driver1
- ilink driver1.obj /stack:80000 sort.lib
- driver1
|
This information center is powered by Eclipse technology. (http://www.eclipse.org)