Download MetaTrader 5
To add comments, please log in or register
Trade like successful traders - subscribe to their signals!
Paul
784
Paul 2010.01.22 15:31 

New in build 240 is a "too complex program" error, see below

 

#include <Arrays/ArrayObj.mqh>
#include <ChartObjects/ChartObjectsLines.mqh>
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
class CWidgetChild : public CChartObjectHLine
  {
public:
   int               m_Member;
  };
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
class CWidget : public CObject
  {
public:
   // three members won't compile but two will
   CWidgetChild      *m_child1;
   CWidgetChild      *m_child2;
   // if uncommented below, get compiler errors 'Widget' - too complex program
   // and 'Widget' - internal error
   CWidgetChild      *m_child3;
  };
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
class CWidgetArray : public CArrayObj
  {
public:
   CWidget *Widget(int i){return((CWidget*)CArrayObj::At(i));}
  };
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
void OnStart()
  {
  }
//+------------------------------------------------------------------+

Paul

http://paulsfxrandomwalk.blogspot.com/

Regularly emailing the status of an account
  • 2012.06.14
  • Paul
  • paulsfxrandomwalk.blogspot.com
Prompted by a query, I thought I'd post a useful little utility that I have used for ages which emails the status of the account every hour.  After lengthy deliberation I decided to call it .... EmailStatus.  With only a small modification it could be used to log the status to a file, and the time...
Ilyas
1189
Ilyas 2010.01.26 11:08  

Thank you for your message. Bug fixed, please wait for updates.

Paul
784
Paul 2010.01.29 01:54  
mql5:

Thank you for your message. Bug fixed, please wait for updates.

Thankyou - confirmed fixed in build 241
/
To add comments, please log in or register