How to Define a Pointer Data Type in TestStand

Updated Oct 28, 2024

Environment

Software

  • TestStand

Some methods defined in C/C++ use pointers as parameters, this article explains how to create this type of variables and pass them to a function on a C/C++ DLL call with TestStand.

1. Create a local variable by going to the Variables window, right click on Locals > Insert Local > Object Reference

2. Go to the Step Settings and select the parameter that you want to pass as a pointer (void *) and specify the variable that you created in the previous step.

3. On the right panel select category as Pointer/Handle and Pass should be By Value.



4. Run the C/C++ call step.