there's a function in MQL5 that can accept struct parameters, it's DatabaseReadBind
bool DatabaseReadBind( int request, // the handle of a request created in DatabasePrepare void& struct_object // the reference to the structure for reading the record );
I'm writing a class for all database operations with simple parameters and I need a function like
The function should prepare/check the request using class variables and then call the function DatabaseReadBind and pass parameters. However, i get the error "illegal use of void type" Any suggestions?
Is there a database class in MQL5 that you can use as superclass or are there functions only?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hello there,
there's a function in MQL5 that can accept struct parameters, it's DatabaseReadBind
bool DatabaseReadBind(int request, // the handle of a request created in DatabasePrepare
void& struct_object // the reference to the structure for reading the record
);
I'm writing a class for all database operations with simple parameters and I need a function like
bool CDatabase::GetStruct(string sql_string, void& struct_object)
{
...
}
The function should prepare/check the request using class variables and then call the function DatabaseReadBind and pass parameters.
However, i get the error "illegal use of void type" Any suggestions?
Is there a database class in MQL5 that you can use as superclass or are there functions only?
Thanks