Yes sorry, you're right, when I 'translated' the code I got that wrong.. this is the updated code:
Code:
public void TestSDKDOTNET()
{
System.Type SDKType = System.Type.GetTypeFromProgID("RoadRunned.SDK");
object SDK = System.Activator.CreateInstance(SDKType);
RRSCR = SDKType.InvokeMember("GetInfo", System.Reflection.BindingFlags.InvokeMethod, null, SDK, new object[] {"TRACKNAME"});
SDKType.InvokeMember("Execute", System.Reflection.BindingFlags.InvokeMethod, null, SDK, new object[] {"EXIT"});
}
Please note the SDK object passed as a parameter to InvokeMember.
Bookmarks