TS Object Parameters - C/C++ DLL Call Parameters

TS Object Parameters

Use the TS Object category to pass TestStand objects to DLL functions that use the Microsoft Visual Studio #import classes. You use the #import statement in Visual Studio with the TestStand API to define C++ classes to access the TestStand API. When you select the TS Object category for a parameter, the Type ring control contains the list of TestStand object classes you can pass to the function. The DLL function must not call Release on the object passed in.

Pass by Value or by Reference

When you select the TS Object category for a parameter, the C/C++ DLL Adapter displays the Pass control. This control specifies whether TestStand passes the value of the argument you specify in the Value Expression control or passes a pointer to the argument. If you select By Pointer (*) or By Reference (&) , the C/C++ DLL Adapter passes a pointer to the argument value. If you choose to pass a pointer, the argument you specify in the Value Expression control must be the name of a variable or property.

Note
  • You can pass NULL to a TSObject parameter you pass by value by passing an empty object reference or the constant Nothing . Do not pass the constant 0 .
  • You can pass an empty reference to a TSObject parameter you pass by reference by passing the constant Nothing . Do not pass the constant 0 .

See Also

Mapping Parameters