NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

MODULEAPI in DLL Function Prototype

I have a DLL with function prototypes like:
MODULEAPI BOOL WIN_RunInterfaceTest( void );
Where MODULEAPI is documented as:
MODULEAPI - This is a standard Windows C/C++ declaration for functions inside a DLL. This is defined as FAR PASCAL, indicating that the call adheres to the PASCAL language calling conventions.
Using the C/C++ DLL module adapter, adding an action, specifying the module, selecting the DLL function, TestStand isn't recognizing the parameter information for the prototype. See attached screen shot of the error message.

These DLL functions have been used in LabVIEW VI's for quite some time, but for some reason they are not being recognized in TestStand. Any ideas why not?

John Shaffer
0 Kudos
Message 1 of 2
(2,876 Views)
It looks like the parameter information was not built into the DLL.  If you have the documentation, you can specify the parameters and everything will probably work fine.   Use the pane on the right to specify the type information for the current parameter, and use the New button on the bottom to add as many parameters as needed. 
----
I am the founder of CnCSoftwareSolutions. When not cleaning up baby drool, I write about test data or work on Vision, a tool for understanding your test data. Visit me at www.cncsoftwaresolutions.com
0 Kudos
Message 2 of 2
(2,870 Views)