Hi i try to work with inifile but unfortunately is very complicated in mql4 , i saw a lib in library but not work , therfore in first time i try to usae fileread and many more but not work also this solution , therefore i prefer use a dll i created this dll in C in pelles
and i have create the dll iniWini.dll i put them in include (i suppose is good location) ,at this time i call by the mql4
but return me
2023.07.21 23:38:23.968 DEMADE3 AUDCHF,H1: unresolved import function call
2023.07.21 23:38:23.968 Cannot call 'iniWini.dll::ReadIniValue', 'iniWini.dll' is not loaded
2023.07.21 23:38:23.967 Cannot load 'iniWini.dll' [126]
why not import ? if first time for me that i use a dll whats wrong ? o_O
thanks at all
i try to move but return this
2023.07.22 10:15:37.372 DEMADE3 AUDCHF,H1: unresolved import function call
2023.07.22 10:15:37.372 Cannot find 'ReadIniValue' in 'iniWini.dll'
thanks i try to resolve in this mode
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <windows.h> // Funzione per leggere il valore di una chiave da un file INI const char* ReadIniValue(const char* filename, const char* section, const char* key, char* value, int valueSize) { GetPrivateProfileString(section, key, "", value, valueSize, filename); return value; }
but nothing return me
2023.07.24 09:13:10.952 DEMADE3 AUDCHF,H1: not initialized
2023.07.24 09:13:10.952 DEMADE3 AUDCHF,H1: unresolved import function call
2023.07.24 09:13:10.952 Cannot find 'ReadIniValue' in 'iniWini.dll'
i have also a dubt i create a dll in C but i find some example in youtube that use c++ but is possible in C ? or i must use c++ ? thanks
i have also a dubt i create a dll in C but i find some example in youtube that use c++ but is possible in C ? or i must use c++ ? thanks
I think you are overcomplicating all things.
i just try with open file etc but is not good solution for operate in ini
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi i try to work with inifile but unfortunately is very complicated in mql4 , i saw a lib in library but not work , therfore in first time i try to usae fileread and many more but not work also this solution , therefore i prefer use a dll i created this dll in C in pelles
and i have create the dll iniWini.dll i put them in include (i suppose is good location) ,at this time i call by the mql4
but return me
2023.07.21 23:38:23.968 DEMADE3 AUDCHF,H1: unresolved import function call
2023.07.21 23:38:23.968 Cannot call 'iniWini.dll::ReadIniValue', 'iniWini.dll' is not loaded
2023.07.21 23:38:23.967 Cannot load 'iniWini.dll' [126]
why not import ? if first time for me that i use a dll whats wrong ? o_O
thanks at all