Download MetaTrader 5

ShellExecuteW

To add comments, please log in or register
Daniel Thouvignon
38
Daniel Thouvignon  

Hello everybody,

Using ShellExecuteW makes the program crash now (version 586).

Here is a example (script that worked well on previous versions):

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

void OnStart()

  { ShellExecuteW(0,0,"Notepad.exe","","",1);}


Thank you in advance

Daniel

Daniel Thouvignon
38
Daniel Thouvignon  

I forgot to mention that I use Vista 32 bits

To add comments, please log in or register