LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can a DLL detect that it was called by LabVIEW?

Our company has a C# library and we want to use it with LabVIEW.   To use the, distinctive, LabVIEW method of returning errors to the error cluster we need to ask the group managing the DLL to throw an unhandled exception.  Normally this would be the wrong behavior for the DLL.  Is there any way a DLL can detect that it was called from a LabVIEW invoke node?

Thank you,

Chas

 

0 Kudos
Message 1 of 2
(2,198 Views)

GetModuleHandle Function is your friend.

 

Andrey.

 

Message 2 of 2
(2,193 Views)