How to use ShellExecuteA?

 

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

}
 
Search the forums here
 
Ok I solved it, you have to use ShellExecuteW now.
 
Jasus5457:
Ok I solved it, you have to use ShellExecuteW now.

This is awesome. Thanks a lot!
Reason: