Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to impement an external DLL in VFP
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01624395
Message ID:
01624652
Views:
66
Hey Guys....


How do I get wwwDotNetBridge to handle instatiating a STRUCT, like this?

var CommSet = new SETTINGS_COMMUNICATION();


Here is the code that goes along with it...
//Initialize communication settings
            var CommSet = new SETTINGS_COMMUNICATION();
            ERROR_ID test = RBA_API.Initialize();
            
            //Serial communication settings
            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)cmbFlowControl.SelectedIndex;
I cannot get that line of code to run properly.... always come out NULL so CommSet is not there as an object for the property values to be set.

Thanks in advance!
Tommy
Tommy Tillman A+ NetWork+ MCP
Previous
Reply
Map
View

Click here to load this message in the networking platform