Download MetaTrader 5

How to use ShellExecuteA?

To add comments, please log in or register
Tosh5457
229
Tosh5457  

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  
Search the forums here
Tosh5457
229
Tosh5457  
Ok I solved it, you have to use ShellExecuteW now.
Ricardo1
181
Ricardo1  
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