Download MetaTrader 5
To add comments, please log in or register
Add the thread to Favorites. Track the changes even faster!
Tosh5457
223
Tosh5457 2014.02.11 15:05 

I was able to run programs using ShellExecuteA in the previous build. For example to run notepad.exe it was the code below. Now with the new metatrader build it doesn't work anymore... And also file handling is much much slower.

#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);

}
ydrol
593
ydrol 2014.02.11 15:09  
Search the forums here
Tosh5457
223
Tosh5457 2014.02.11 15:12  
Ok I solved it, you have to use ShellExecuteW now.
Ricardo1
161
Ricardo1 2014.08.07 16:25  
Jasus5457:
Ok I solved it, you have to use ShellExecuteW now.

This is awesome. Thanks a lot!
/
To add comments, please log in or register