Download MetaTrader 5

Congratulations - page 2

To add comments, please log in or register
Add our Twitter channel to friends and follow the news!
Kenley
59
Kenley 2014.02.17 18:08  
angevoyageur:

I can't answer for sure, but .ex4 compiled with old build 509, works in almost all the case with build 6xx. Of course there are certainly exception.

The best thing to do is to try this 509.ex4 and recompile only as a last solution, mainly for non-programmers.


gooly, angevoyager- If the EA is using a shellexecute method to get the news over the internet, it most certainly will not work without a code change and recompile.
Alain Verleyen
Moderator
30738
Alain Verleyen 2014.02.17 19:39  
kenleyl:
gooly, angevoyager- If the EA is using a shellexecute method to get the news over the internet, it most certainly will not work without a code change and recompile.

Nope. This is what most people don't understand.

.ex4 compiled with "old" 509 compiler works most of the time, even if you have ShellExecuteA or other DLL calls. See test script attached. Try it on build 6xx.

Only when you recompile, which seems a bad habit for non-programmer, you will begin to have errors and warnings.

#import "shell32.dll"
int ShellExecuteA(int hWnd,int lpVerb,string lpFile,string lpParameters,int lpDirectory,int nCmdShow);
#import

int start()
  {
   ShellExecuteA(0,0,"notepad.exe","",0,1);
  }
12
To add comments, please log in or register