10-07-2005 05:48 AM
10-08-2005 04:33 PM
Hello Han,
It looks like you have done most of the work for passing a Struct as a parameter from TestStand to a DLL. I think you are missing just one thing.
Have you seen the KnowledgeBase document, “Calling Functions, in a C/C++ DLL, that have a C Struct as a Parameter from TestStand”? The second section describes how to set the properties of your custom data type to allow it to be passed as a C Struct. Once you set the properties, your function call should work properly.
Regards,
Eric
10-13-2005 01:52 AM
Thank you for replying Eric.
In the attachments you can see I marked the member variables of the struct to be passed as a struct (???) But I have found the problem and as I feared it was very basic:
At the moment of defining/creating the struct (under 'Locals') I chose 'container' as type where I should have chosen 'types' - BaanTabRecTS, the very type I had created myself. When I re-created the variable sBTRts with type BaanTabRecTS the member variables of the struct where automatically shown and, this time, in darkish blue where when I had created the variable as a container they where light blue (hard to see in my attachments though).
10-13-2005 08:22 AM
Hello Han,
It sounds like the function call working appropriately. In the sceenshots, I could not see that the Local had been created as a Container instead of a BaanTabRecTS. I assume that you would want to pass the members of the struct as the expected type and not as structs.
Eric