Recommended Microsoft Visual C++ Function Prototypes

TestStand ATML Toolkit 2017 Help

Edition Date: June 2018

Part Number: 374205B-01

»View Product Info
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 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 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.

See Also

Code Generator Callbacks

Creating a DLL for a LabWindows/CVI Custom Code Generator

WAS THIS ARTICLE HELPFUL?

Not Helpful