Download MetaTrader 5
To add comments, please log in or register
No time to learn MQL5? The source code library is at your service!
JulioCesar1
42
JulioCesar1 2016.01.31 16:23 

Hello,

I have a computer running Windows 10, in which the code:

string Terminal_Data_Path=TerminalInfoString(TERMINAL_DATA_PATH);

 always returns a NULL string. This code works fine in other machines I have, namely one other Windows 10, and other is running Windows 8. I really can't pinpoint the issue, as I've tried disabling the antivirus, running Metatrader as administrator, and it still doesn't work... Any ideas?

Thank you. 

Ex Ovo Omnia
3110
Ex Ovo Omnia 2016.01.31 19:15  

Weird, but it would explain issues which encountered a few of my users on build 950. Could you also carry on the additional path commands on the defective installation?

void OnStart()
  {
//---
   Print("TERMINAL_PATH = ",TerminalInfoString(TERMINAL_PATH));
   Print("TERMINAL_DATA_PATH = ",TerminalInfoString(TERMINAL_DATA_PATH));
   Print("TERMINAL_COMMONDATA_PATH = ",TerminalInfoString(TERMINAL_COMMONDATA_PATH));
  }

Carl Schreiber
6578
Carl Schreiber 2016.01.31 20:23  
JulioCesar8:

Hello,

I have a computer running Windows 10, in which the code:

string Terminal_Data_Path=TerminalInfoString(TERMINAL_DATA_PATH);

 always returns a NULL string. This code works fine in other machines I have, namely one other Windows 10, and other is running Windows 8. I really can't pinpoint the issue, as I've tried disabling the antivirus, running Metatrader as administrator, and it still doesn't work... Any ideas?

Thank you. 

Tell it the Service Desk
JulioCesar1
42
JulioCesar1 2016.01.31 21:06  
Sorry my mistake, those functions are working, what's not working is calling CreateFileW from Windows API. Returns ERROR_PATH_NOT_FOUND even though path to file exists. I'm trying to access MQL4/Libraries folder.
/
To add comments, please log in or register