|Download Help (Windows Only)|
When you use Microsoft Visual C++ to create a function to implement a LabWindows/CVI custom code generator, National Instruments 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 tutorial 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.|