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
It's better to save a resource with ResourceSave, because when you integrate it into EA, you get its content into an array using ResourceReadImage. It's convenient and fast, but it's not universal. I haven't integrated binary files as resources, so I don't know how to make them readable again.
Save the data, integrate it through resource variables. Then you can save any data, not just BMPs. What could be simpler?
Save binary data, integrate it through resource variables. Then you can save any data, not just BMPs. What could be easier?
Save the data, integrate it through resource variables. Then you can save any data, not just BMPs. What could be simpler?
Do you do the same with Database? The FileSave function does not support strings. Unless you use crutches (convert string to char array).
FileSave is just an example :) think bigger and study file operations in mql ...
Has anyone encountered error 5621 (Library misuse error) when trying to create a database in DATABASE_OPEN_MEMORY mode?
The error occurs as they say in the empty place, i.e. usual construction does not work and gives out dbHandle=-1:
int dbHandle = DatabaseOpen("Btr",DATABASE_OPEN_MEMORY);
How to deal with it?
Has anyone encountered error 5621 (Library misuse error) when trying to create a database in DATABASE_OPEN_MEMORY mode?
The error occurs as they say in the empty place, i.e. usual construction does not work and gives out dbHandle=-1:
int dbHandle = DatabaseOpen("Btr",DATABASE_OPEN_MEMORY);
How to deal with it?
Add the DATABASE_OPEN_READWRITE flag
SQL functions in MQL5 are great!
But it would be interesting to use the built-in language to access external databases, MS SQL , ORACLE, SyBase, MySQL, etc. Without using a DLL.
Thanks for the clarification, now opening the database in DATABASE_OPEN_MEMORY mode works!
SQL functions in MQL5 are great!
But it would be interesting to use the built-in language to access external databases, MS SQL , ORACLE, SyBase, MySQL , etc.Without using a DLL.
Then go to: Working with network functions, or MySQL without DLLs