Forex programozás › Fórum › Kérdések az MQL4 programozási nyelvvel kapcsolatban › kernel32.dll › Válasz erre: kernel32.dll
Én ezt használom:
#import "kernel32.dll"
int _lclose (int);
int _lopen (string,int);
#import
#define HFILE_ERROR -1
bool Debug.IsFileExists (string fileLocation) {
int fileHandle = _lopen(fileLocation, 0);
if (fileHandle == HFILE_ERROR) {
return(false);
}
else {
_lclose(fileHandle);
return(true);
}
}