Recommended Microsoft Visual C++ Function Prototypes
- Updated2025-10-28
- 1 minute(s) read
Recommended Microsoft Visual C++ Function Prototypes
When you use Microsoft Visual C++ to create a function to implement a LabWindows/CVI custom code generator, the manufacturer recommends a function prototype for each callback the LabWindows/CVI custom code generator uses.
Refer to the individual callback topics for more information about the Visual C++ function prototype for each callback.
Complete the steps in the LabWindows/CVI Custom Code Generator section to create a
LabWindows/CVI code generator DLL that contains these functions.
Note When you create a function in a C
file to implement a custom code generator callback, the function must use the same
name as the Visual C++ function prototype that implements the same callback. For
example, if you create a function to implement the PreTranslateAction callback, the
function name must be CodeGenerator_PreTranslateAction().
Note Use the
stdcall calling convention for these functions, and create a
module-definition (.def) file that includes all the exports the
created dll performs to ensure that no name mangling occurs as
a result of the calling convention.