Download MetaTrader 5
To add comments, please log in or register
Having questions to the author of an article? Discuss them on the Forum!
georget11
24
georget11 2014.10.12 22:27 

DLLs work, unless you are trying to use any system function, e.g. time(), fopen()  etc.

Comments? 

Fabrice
4
Fabrice 2014.10.13 07:54  

Same here, problem :

2014.10.13 09:08:24.399 Cannot load 'G:\Program Files (x86)\MT4\MQL4\Libraries\kernel32.dll' [487]

 

and then :

2014.10.13 09:08:27.995 Cannot call 'kernel32.dll::GetTimeZoneInformation', 'kernel32.dll' is not loaded

 

Check in "Expert Advisor" settings tab "Allow Dll import..." is checked.

Carl Schreiber
5966
Carl Schreiber 2014.10.13 08:10  
georget11:

DLLs work, unless you are trying to use any system function, e.g. time(), fopen()  etc.

Comments? 

It can be that theses functions don't work as they are pretty old and still ASCII - maybe they are blocked now(?).

To use Windows functions CreateFileW(..) of "kernel32.dll" this works actually at least in my b670.

For time use the mt4-functions TimeGMT, TimeLocal and TimeCurrent() and TimeDaylightSavings() from that you can get everything you need..

georget11
24
georget11 2014.10.14 05:18  
gooly:

It can be that theses functions don't work as they are pretty old and still ASCII - maybe they are blocked now(?).

To use Windows functions CreateFileW(..) of "kernel32.dll" this works actually at least in my b670.

For time use the mt4-functions TimeGMT, TimeLocal and TimeCurrent() and TimeDaylightSavings() from that you can get everything you need..

It's the latest build 711 (September). Probably it blocks calls, because playing outside Sandbox is prohibited. :)

OTOH, I do not really need it. MT4 has everything. And all information it produces (e.g. ticks data) can be accessed in real-time.

Even using lovely Unix pipes!

Cheers! 

georget11
24
georget11 2014.10.14 05:21  
angletProject:

Same here, problem :

2014.10.13 09:08:24.399 Cannot load 'G:\Program Files (x86)\MT4\MQL4\Libraries\kernel32.dll' [487]

 

and then :

2014.10.13 09:08:27.995 Cannot call 'kernel32.dll::GetTimeZoneInformation', 'kernel32.dll' is not loaded

 

Check in "Expert Advisor" settings tab "Allow Dll import..." is checked.

 

 

Sorry, the issue is totally different, MT4 does load DLL, but (supposedly) blocks system calls time(), sprintf() etc.

Cheers. 

Fabrice
4
Fabrice 2014.10.14 07:00  
georget11:

Sorry, the issue is totally different, MT4 does load DLL, but (supposedly) blocks system calls time(), sprintf() etc.

Cheers. 

OK. For information purpose, I managed to solve my problem by running MT4 using the option "Run as Administrator". Maybe you can try that ....

/
To add comments, please log in or register