NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

__declspec(dllexport) __stdcall vs. DLLEXPORT DLLSTDCALL

What's the difference if I use __declspec(dllexport) __stdcall  vs. DLLEXPORT  DLLSTDCALL  as a qualifier in a fp.?  I basically have the exact same function that I found in a cvi example except I use the DLLEXPORT DLLSTDCALL as the qualifier in my fp.  I can pass the structure to TestStand, but the variables are not what I set them to in TS, they are all 0 or NULL??  Is it because of the qualifier?
 
Thanks,
 
GreggJ
0 Kudos
Message 1 of 2
(4,275 Views)
Hi GreggJ,

These two qualifiers are essentially the same.  The DLLEXPORT and DLLSTDCALL are just macros (defined in cvidef.h) for __declspec(dllexport) and __stdcall.  Thus it's not the qualifier.  It's most likely how you setup the 'C Struct Passing' of your custom data type that stores the struct in TestStand. 

Have a great day,

Ecleamus Ricks, Jr.
0 Kudos
Message 2 of 2
(4,251 Views)