CLOSE ALL CLOSE DATABASES CLEAR DLLS do wwDotNetBridge PUBLIC loBridge as wwDotNetBridge loBridge = CreateObject("wwDotNetBridge") PUBLIC loRBA as Object loBridge.LoadAssembly("RBA_SDK_CS.DLL") loRBA = loBridge.CreateInstance("RBA_SDK.RBA_API") lntest = loBridge.Invokemethod(loRBA, "Initialize")But now I need to be able to do this C# line of code...
var CommSet = new SETTINGS_COMMUNICATION();
where the SETTINGS_COMMUNICATIONS is a type of STRUCT.CommSet.interface_id = (uint)COMM_INTERFACE.SERIAL_INTERFACE; CommSet.rs232_config.ComPort = "COM8";// cmbCommPort.Text; CommSet.rs232_config.BaudRate = 115200;//Convert.ToUInt32(cmbBaudRate.Text); CommSet.rs232_config.DataBits = 8;//Convert.ToUInt32(cmbByteSize.Text); CommSet.rs232_config.Parity = 0;//(uint)cmbParity.SelectedIndex; CommSet.rs232_config.StopBits = 1;//Convert.ToUInt32(cmbStopBits.Text); CommSet.rs232_config.FlowControl = 0;//(uint)cmI saw in some online discussions where Rick uses this to access STATIC PROPERTIES....
*** Retrieve a static property which is an object loConfig = loBridge.GetStaticProperty("Westwind.WebLog.App","Configuration") *** I could also instantiate the config object directly *loConfig = loBridge.CreateInstance("Westwind.WebLog.App")I tried some variations of this, but I could not get the loConfig to instatiate... I keep getting .NULL. for it and the error message returned is