In order to use IrTranP functionality, code must #include the tranp.h
header file, and link with the irtranp.lib
library. This itself is simply the stub to irtranp.dll
: a run time DLL which must be loaded by the client code at run time.
The irtranp.dll
runs in the user’s thread and makes extensive use of active object technology. Due to this, there are two important considerations to make when using the DLL:
Install a CActiveScheduler
before making any calls to IrTranP functions
Do not make any calls to User::WaitForRequest()
while an IrTranP request is outstanding.
This ensures that the CActive
derived objects within irtranp.dll
are scheduled as required.