|
Description
This example program demonstrates how to use an RTDLL in an RTSS Process. It uses library functionality to provide an application similar to the DLL sample.
Source Files
The Rtdll example includes two projects:
RtDll.vcproj
builds Sample.Rtdll
which is an RtDll that contains
the function "Toggle" which toggles the state of the speaker.
UsingRtdll.vcproj
builds Rtdll.c
that loads an rtdll, calls an rtdll function, and then frees the Rtdll. It can be built as as either
a Win32 .exe binary, or an .rtss binary. Build the Project
Run the Project
sampleRtdll.rtdll
is both registered and in the same folder as UsingRtdll.rtss. To Register a DLL, use the command line rtssrun /d <filename>
.Remarks
The sample RTDLL must be registered with the RTX subsystem before it can be debugged. This can be done by typing:
rtssrun.exe /d /f sampleRtdll.rtdll
APIs Referenced
RTAPI |
Win32 APIs |