elugovoy / MQLMySQL-Project

MQL & DLL libraries for working with MySQL database
GNU General Public License v3.0
48 stars 30 forks source link

mql4 test script change #4

Closed phantasz closed 4 years ago

phantasz commented 4 years ago

I had to make a change to find ini file. I believe the way it is coded now will only find file if mt4 is opened as administrator. This works instead: INI = TerminalInfoString(TERMINAL_DATA_PATH)+"\MQL4\Scripts\MyConnection.ini";

elugovoy commented 4 years ago

Sure, you right, but you can place your INI file anywhere on drive (where your OS user has appropriate rights), and just set fullpath in MQL code to. Also, you may keep your database credentials inside MQL code, or write special functions to read them from windows registry keys (to keep credentials in registry).