Forum

calling a base class virtual function

Hi I'm trying to call a base class's virtual function inside of a derived class with the same function name. Consider the following: class Parent{ public: virtual void Test(){ Print("Parent"); } }; class Child : public Parent{ public: void Test(){ Parent* p =

Typecasting from base to derivative class

" You can use the explicit casting to convert the base class pointers to the pointers of a derived class. But you must be fully confident in the admissibility of such a transformation, because otherwise a critical runtime error will occur and the mql5 program will be stopped." Is there any way to

Getting the name of the current class

There are some cases when you just want to get the string name of the currently active class, to see if it's a parent of a child that is currently running. Can this be done in MQL

Programmatically enumerating input parameters

Hello I am interested in creating a hash for input parameters, much like the one the agent uses. The problem is that i would want this to work for any script. For that i would need an array of input parameters which i could work on. Is this possible? Another small request would be the inclusion of

Command line testing, ShutdownTerminal and multiple tests

Hello I am having the following problem: am am interested in doing a lot of automated tests through command line,and i got it all working through ShutdownTerminal and multiple runs. The problem is that shutting down and starting takes a lot of time for meta trader to initialize. Is there a way to

Functions with enum parameter and functions with variable arguments

Hello, I'm having trouble defining functions something like these: uint CFileCsv::WriteElement(const enum value) { //--- checking if(m_handle<0) return(0); //--- if(!first) line.Append(delim); line.Append(EnumToString(value)); first=false; return StringLen(EnumToString(value)); } enum