07-13-2010 06:36 PM
Hi,
I have the function below in my dll file but I am having problem receiving the parameters to teststand.
int GetEvent (int pid, char *msg, int &msgSize)
pid is the input parameter
*msg will be the received string
&msgSize will be the received strength length in integer.
Any idea on how to approach this problem?
Regards
Ray
Solved! Go to Solution.
07-14-2010 11:52 AM
Hello Ray,
Are you lettings TestStand use the type definition to define the function parameters in your TestStand DLL call? If so, TestStand typically expects input strings to be typed as 'char *', and output strings to be typed as 'char[x]', where x is some default numeric size; it can also be just 'char[]').
Alternatively, you can override what TestStand thinks is the prototype for msg and change the TestStand type from C String (const) to C String Buffer in the parameter property settings. You'll also need to give the buffer a default size that is larger than what you expect to receive in the Buffer size field.
Note that refreshing the prototype will reset this override, so changing the type library in the source would be preferable.
Hope this helps.
-Jack
07-26-2010 12:02 PM
Hi Capt. Jack,
Thanks it worked.