Discussion of article "MQL for "Dummies": How to Design and Construct Object Classes"

 

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

 

 It can't be compiled.

 

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

 
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.
 

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.