NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the function prototypes from a DLL type library?

I am building a step editing GUI for an operator interface based on TestStand 2.0. I will be using several instrument drivers DLLs, which I created in LabWindows/CVI, exporting the corresponding type libraries. When I open the Edit DLL Call window and I select a DLL with type library info included, the function prototypes appear with all the parameter information.
Now, I am trying to write a custom GUI similar to this Edit DLL Call window, where I need to know the prototype of the selected DLL function. Is there a way to retrieve the parameter information from a function in a DLL with type library info included? There should be a way, because TestStand does that when it opens the Edit DLL Call window. Can it be don
e from a custom editing module?
Thanks.
0 Kudos
Message 1 of 2
(4,039 Views)
You can load a dll type library by calling the Windows function LoadTypeLibEx. You can then extract information using the ITypeLib, ITypeInfo, and related interfaces.

Unfortunately, the details are far more complicated than I could possibly explain and I would recommend against this approach unless you are comfortable with low-level ActiveX/COM programming.
0 Kudos
Message 2 of 2
(4,039 Views)