LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Import message table from DLL

Solved!
Go to solution

Is there any way to import a the message table resource from a DLL (or, specifically, an OCX file) into LabView such that the error dialogs will properly report error codes returned by DLL calls?

 

Thanks!

0 Kudos
Message 1 of 3
(2,729 Views)
Solution
Accepted by topic author erikm

The only thing you can do with DLLs is call functions, and with the ActiveX interface you can only access the exposed methods and properties. Perhaps you can create a function to return the error string based on the error code?

0 Kudos
Message 2 of 3
(2,719 Views)

Yup, that was the fallback plan. I noticed that there's a provision for user-defined codes and messages and would have generated a message .txt file, but the DLL message codes don't fit in the LabView's user code ranges. So fn call it is.

0 Kudos
Message 3 of 3
(2,712 Views)