Hi, I'm trying to figure out how to pass my struct to a dll that I am testing in TestStand 3.1.
Here is an example of the code in the dll:
***
typedef short SINT16;
typedef int CONNECT_ID ;
typedef struct myStruct
{
SINT16 partA;
SINT16 partB;
} myStruct;
int myFunction(CONNECT_ID ConnectID, int myInt, void* pData, int dataLen, int param);
***
I have defined SINT16 in TestStand as a Signed 16-bit int with a 2 byte boundary. I have also defined myStruct as a container type with two SINT16's inside of it with a 4 byte boundry. It holds the SINT16's as Embedded Structs.
I'm trying to send an instance of myStruct to myFunction() as pData but the SINT16's I put in the struct are not being received properly. Is there a generic trick for dealing with passinf objects to void pointers in TestStand?
TIA
evard