LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DLL calling convention

I wonder what calling convention I should select at the call library node for these 2 cases of DLL
if my functions in the DLL are declared as follow;
1. extern "C" void PASCAL EXPORT my_function()
2. void __declspec(dllexport) my_function2()

thanks
0 Kudos
Message 1 of 2
(2,814 Views)
The first one uses the obsolete type PASCAL. This has been mapped to __stdcall so that is what you should put in your Call Library Node.

The second one doesn't declare an explicit calling convention so I have to make some assumptions:

1. This is not a member fuction of a C++ class.
2. You haven't defined an explicity calling convension in the compiler (such as /Gz or /Gr).

In that case, it defaults to __cdecl.
0 Kudos
Message 2 of 2
(2,804 Views)