zhe
13 years agoOccasional Contributor
How to use .Net ref parameters in TestComplete?
Supposed there is a function:
public static int CanReceive(ref CanMsg msg);
How should I call it TestComplete?
I tried this:
var canMsg = dotNET.SomeLibs.CanMsg.zctor();
var result = dotNET.SomeLibs.CanReceive(canMsg);
Log.Message("Succeed!");
but it didn't work. I cannot see any messages in the log and it seems the test stopped at the 2nd line. What is the right to do it then? Thanks!!!
Regards,
Zhe
public static int CanReceive(ref CanMsg msg);
How should I call it TestComplete?
I tried this:
var canMsg = dotNET.SomeLibs.CanMsg.zctor();
var result = dotNET.SomeLibs.CanReceive(canMsg);
Log.Message("Succeed!");
but it didn't work. I cannot see any messages in the log and it seems the test stopped at the 2nd line. What is the right to do it then? Thanks!!!
Regards,
Zhe