Sound stupid!
try add your messageBox() to samples of MT own, then test.
try add your messageBox() to samples of MT own, then test.
Are you sure that you done all to get it?
//+------------------------------------------------------------------+ //| CheckMeesageBox.mq4 | //| Copyright © 2007, MetaQuotes Software Corp. | //| 'Start() method not called' | //+------------------------------------------------------------------+ #property copyright "Copyright © 2007, MetaQuotes Software Corp." #property link "'Start() method not called'" //+------------------------------------------------------------------+ //| expert initialization function | //+------------------------------------------------------------------+ int init() { //---- MessageBox("init"); //---- return(0); } //+------------------------------------------------------------------+ //| expert deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| expert start function | //+------------------------------------------------------------------+ int start() { //---- MessageBox("I don\'t forgot to allow experts!"); return(0); } //+------------------------------------------------------------------+
Rosh:
Are you sure that you done all to get it?
Are you sure that you done all to get it?
//+------------------------------------------------------------------+ //| CheckMeesageBox.mq4 | //| Copyright © 2007, MetaQuotes Software Corp. | //| 'Start() method not called' | //+------------------------------------------------------------------+ #property copyright "Copyright © 2007, MetaQuotes Software Corp." #property link "'Start() method not called'" //+------------------------------------------------------------------+ //| expert initialization function | //+------------------------------------------------------------------+ int init() { //---- MessageBox("init"); //---- return(0); } //+------------------------------------------------------------------+ //| expert deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| expert start function | //+------------------------------------------------------------------+ int start() { //---- MessageBox("I don\'t forgot to allow experts!"); return(0); } //+------------------------------------------------------------------+
I am a newbie at mql4 but am having the same problem. I'd like to use the messagebox
for a form of debugging purposes but can't get it to fire either.
Have created a simple program with just the following code and invoked with EA it but no message box fires?
Thanks for any help.
Have created a simple program with just the following code and invoked with EA it but no message box fires?
Thanks for any help.
//+------------------------------------------------------------------+ //| junk.mq4 | //| | //| https://www.metaquotes.net/ | //+------------------------------------------------------------------+ #property copyright "" #property link "https://www.metaquotes.net/" //+------------------------------------------------------------------+ //| expert initialization function | //+------------------------------------------------------------------+ int init() { //---- MessageBox("init"); //---- return(0); } //+------------------------------------------------------------------+ //| expert deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| expert start function | //+------------------------------------------------------------------+ int start() { //---- //---- return(0); } //+-----------------------------------------------------------------
MessageBox("init"); is win32 function,
so should add
#include <WinUser32.mqh>
so should add
#include <WinUser32.mqh>
//+------------------------------------------------------------------+ #property copyright "Copyright ?2007, MetaQuotes Software Corp." #property link "https://www.metaquotes.net/" #include <WinUser32.mqh> //+------------------------------------------------------------------+ //| expert initialization function | //+------------------------------------------------------------------+ int init()
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
I am trying to create an EA that will initially do some very basic task; either pop a MessageBox or write to a file - both of which I've done before with MQL. But for some reason the Start() method is never getting fired. I can get a message box during init:
But for some crazy reason I never get a message box during start:
This just seems stupid, I know I did this without a problem several months ago. What am I missing?
Thanks in advance!
girdle66