01-30-2013 02:00 PM
When a DLL returns a bstr value how do I set up the Return value in the module tab of the step settings? I imagine a pointer is used but I get lost at that point. How do I get the memory value into a local variable?
Thanks!
01-30-2013 04:05 PM
Nevermind. After figuring out the correct search text I found an answer. In short, TS does not handle strings for DLL call return values.
01-31-2013 09:34 AM
Also any DLL code that outputs a BSTR is likely expecting you to free it (i.e. with SysFreeString) when you are done. TestStand does not do the freeing. You will leak memory unless you do it somewhere.
-Doug