I'm using roadrunner.sdk in c# by using the following code:
Code:
SDKType = System.Type.GetTypeFromProgID("RoadRunner.SDK");
SDK = System.Activator.CreateInstance(SDKType);
String winamppath = RRCom("GetInfo", "=$WINAMPPATH$")
private String RRcom ( cmd, message )
{
Object o = SDKType.InvokeMember(cmd, System.Reflection.BindingFlags.InvokeMethod, null, SDK, new object[] { message });
return (string) o;
}
I'm trying to do the same thing w/ Roadrunner.GPS. This is what i'm trying:
Code:
String cmd = "GetInfo";
String message = "lat";
SDKType = System.Type.GetTypeFromProgID("RoadRunner.GPS");
SDK = System.Activator.CreateInstance(SDKType);
Object o = SDKType.InvokeMember(cmd, System.Reflection.BindingFlags.InvokeMethod, null, SDK, new object[] { message });
i get the following exception:
- $exception {"Unknown name. (Exception from HRESULT: 0x80020006 (DISP_E_UNKNOWNNAME))"} System.Exception {System.Runtime.InteropServices.COMException}
any ideas how to get lat and long from Roadrunner?