LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LVDLLStatus function in LabVIEW shared DLL?

When a shared DLL is created from LabVIEW 6.1, in addition to the exported
VI functions, LabVIEW adds a function with the following signature:

MgErr __cdecl LVDLLStatus(CStr errStr, int32 errStrLen, void *module);

What is LVDLLStatus used for? How do I use it? What is the *module
argument for?

I can not find any reference to this function in the LabVIEW docs, NI KB or
Internet.

Thanks

---
Bob
0 Kudos
Message 1 of 2
(4,983 Views)
All DLLs built from LabVIEW, in addition to the functions you export, contain an exported function called LVDLLStatus, with the following prototype:

MgErr LVDLLStatus(CStr errStr, int32 errStrLen, void *module);

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.
 
David D. - AE - NI France
Message 2 of 2
(4,770 Views)