All DLLs built from LabVIEW, in addition to the functions you export, contain an exported function called LVDLLStatus, with the following prototype:
The calling program uses this function to verify that the LabVIEW DLL loaded correctly. If an error occurs while loading the DLL, the function returns the error. Pass a string buffer to the errStr parameter to receive additional information about the error. Set the errStrLen parameter to the number of bytes in the string buffer passed as errStr. You can use the module parameter to retrieve the handle to the LabVIEW Run-Time Engine being used by the DLL. Typically, you can leave this parameter as NULL.
|Note If you call a LabVIEW-built DLL from within LabVIEW, LabVIEW automatically calls the LVDLLStatus function for you.|
To manage memory allocation for LabVIEW array types exposed as handles, the LabVIEW-built shared library provides Allocate, Deallocate, and Resize functions for each array type exposed as a handle. Open the generated header file to view the function prototypes specific to the generated shared library.