DLL Programmer's Guide for TNS/E Systems

DLL Programmer’s Guide for TNS/E Systems527252-006
6-1
6 Example Code
This section contains a set of examples to introduce you to some of the tools and
capabilities for building dynamic linked libraries on a TNS/E system.
Example One. This example creates a PIC program running with a DLL, using
the TNS/E native compiler and linker.
Example Two. This session demonstrates dynamic loading. We create and
compile a main and a DLL, but don’t load the DLL. We invoke rld, the run-time
loader, from inside the process by using a dlopen() call.