SELVAN26
SELVAN26
Freunde

Fügen Sie Freunde über ihre Profile oder über die Suche hinzu, und Sie können mit ihnen kommunizieren und ihre Aktivität auf der Webseite verfolgen.

SELVAN26
SELVAN26
Dear sir

my shell execute programming is not executing

please correct my code






//+------------------------------------------------------------------+
//| 1.mq4 |
//| Copyright 2016, MetaQuotes Software Corp. |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2016, MetaQuotes Software Corp."
#property link "https://www.mql5.com"
#property version "1.00"
#property strict


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



//+------------------------------------------------------------------+
//| Expert initialization function |
//+------------------------------------------------------------------+
int OnInit()
{
//--- create timer
EventSetTimer(30);

//---
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Expert deinitialization function |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
//--- destroy timer
EventKillTimer();

}
//+------------------------------------------------------------------+
//| Expert tick function |
//+------------------------------------------------------------------+
void OnTick()
{
//---

}
//+------------------------------------------------------------------+
//| Timer function |
//+------------------------------------------------------------------+
void OnTimer()
{
//---



ShellExecuteW (0,0,"WindowsApplication100.exe","C:\\Program Files\AUTOTRADER\\projects\\WindowsApplication100\\WindowsApplication100\\bin\\Debug\\","",1);



}
//+------------------------------------------------------------------+




when i run with "notepad.exe" instead of "WindowsApplication100.exe"
, it is working well


So Please Correct my code or Show me the Correct Path.


Thanking You
SELVAN26
Hat sich auf MQL5.community registriert