Download MetaTrader 5
To add comments, please log in or register
Do you have Mac OS? Find out how to install MetaTrader on it!
MetaQuotes Software Corp.
Moderator
177083
MetaQuotes Software Corp. 2010.05.26 10:53 

New article MQL for "Dummies": How to Design and Construct Object Classes is published:

By creating a sample program of visual design, we demonstrate how to design and construct classes in MQL5. The article is written for beginner programmers, who are working on MT5 applications. We propose a simple and easy grasping technology for creating classes, without the need to deeply immerse into the theory of object-oriented programming.

Author: Sergey

Wei Sun
698
Wei Sun 2010.05.27 08:28  

 It can't be compiled.

 

'w_corner' - can't convert enum ClassWin.mqh 114 20

Quantum
146
Quantum 2010.05.27 09:52  
bcsunwww :

 It can't be compiled.

'w_corner' - can't convert enum ClassWin.mqh 114 20

use explicit typecasting:

replace

Property.Corner= w_corner;

with

Property.Corner=(ENUM_BASE_CORNER) w_corner;
Source codes of the articles corrected. Thank you.
payne
81
payne 2010.08.28 04:29  

C'mon...are you kidding?

This isn't a "Dummies" guide for a new programmer trying to learn OOP...it's a bunch of goobleygook. You cut-n-paste some code from an application that is way too obscure to be helpful to a new or beginning programmer.

 

/
To add comments, please log in or register