You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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