Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to impement an external DLL in VFP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01624395
Message ID:
01624620
Vues:
73
Rick,

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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform