MQL string type is in Unicode format. So you may have a try to use "FindWindowW" instead of "FindWindowA".
However, I didn't try it :)
beachfan:
In future when you post code please use the SRC button: How to use the SRC button.
My code is:
--------------------------------------------------------------------------
<CODE DELETED>
--------------------------------------------------------------------------
Compiling and running are correct,but the result is:
Receive window Calculator is not found!
RcvWndHdl=0
---------------------------------------------------------------------------
My purpose is that send data to external window of other program.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
My code is:
--------------------------------------------------------------------------
#include <WinUser32.mqh>
#property indicator_chart_window
extern string RcvWndCaption="Calculator";
int RcvWndHdl;//Receive window handle
int init()
{
//Seek the receive window and get its handle
RcvWndHdl=FindWindowA("",RcvWndCaption);
if (RcvWndHdl>0)
Print(" Receive window ",RcvWndCaption," is found!");
else
Print(" Receive window ",RcvWndCaption," is not found!");
Print("RcvWndHdl=",RcvWndHdl);
return(0);
}
--------------------------------------------------------------------------
Compiling and running are correct,but the result is:
Receive window Calculator is not found!
RcvWndHdl=0
---------------------------------------------------------------------------
My purpose is that send data to external window of other program.