02-13-2017 06:33 AM
Hello,
i have a c++ library with several function that i want to use in teststand.
It seems that after selecting the dll and function that i manually have to create the parameters and types.
Is there a way (like in Dotnet) to create them automatically?
Thx
02-13-2017 04:07 PM
You need to make sure that you are exporting the symbols correctly or using a type library. This normally means decorating the methods you want to call in TestStand with __declspec(dllexport). Refer to Exporting Class Methods and Functions in Microsoft Visual Studio
02-14-2017 02:58 AM
A function currently looks like this:
void __declspec(dllexport) Dummy(int a, int b, int* Res)
{
*Res = a+b
}
But TestStand only shows the function name Dummy but not the parameters.
03-12-2019 02:52 AM
There is no macro for printing the arguments, but you can print the function prototype using the __PRETTY_FUNCTION__
macro