NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

problems with *dll files

I have created a *.dll from a*.c file in labwindows and I want to use this as modul in teststand. then when I execute my teststand seq the following error occure:
"could not find function "function name of my function of the *.c file" in the *.dll file". this error message occures although the function is in my *.c file.
is there a problem with converting *.c files in *.dll files in labwindows, or is it another problem?
how can I solve this problem?
regards
samuel
0 Kudos
Message 1 of 4
(3,039 Views)
Hi,
 
You need to make sure you have exported your function correctly in you dll.
Did you use something like __declspec(dllexport) as part of you function syntax?
 
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 4
(3,038 Views)
Ray,
no my file doesnt contain a function like like __declspec(dllexport)
what does this function contain?
samuel
0 Kudos
Message 3 of 4
(3,036 Views)

Hi,

No its not a function.

Your exported function should look something like this (being in mind this is a TS2.0 prototype, the different being the argument of the function eg testData and testError)

void __declspec(dllexport) TX_TEST MyTestFunction(tTestData *testData, tTestError *testError)

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 4 of 4
(3,031 Views)