![]() Using the DLL Template Provided |
![]() Virtual Machine |
![]() |
PROIV provides a standard DLL called extsub.dll, which is called up by default when a LINK or LINKâCRT command is issued. Extsub.dll comprises two modules, including the module cstubs.c in which PROIV expects to find the subroutines to be called. Cstubs.c is provided as a template module containing a set of ten subroutines named SUB0 to SUB9 which, prior to modification, do nothing more than execute return 0 commands. Refer to cstubs.c and extsub.c Modules Template for a copy of the cstubs.c and extsub.c template modules.
To make use of these template subroutines, insert your subroutine code within the template subroutines as described below.
Lines 36 to 75 contain the template subroutines as follows:
int sub0( )
{
<<<<< Insert your code for SUB0 here
return 0;
}
.
.
.
int sub9( )
{
<<<<< Insert your code for SUB9 here
return 0;
}
Insert your subroutine code at the points shown. (Ten subroutines are defined, SUB0 to SUB9.)
NOTE: Do not change or delete the final line, return 0, in any of the subroutines - this is used by the PROIV Virtual Machine.
Topic ID: 750066