Function with struct parameter, DatabaseReadBind


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?