//+------------------------------------------------------------------+ //| PTestC2.mqh | //| Thorsten Fischer Copyright 2020 | //| https://mql5.tfsystem.de | //+------------------------------------------------------------------+ #property copyright "Thorsten Fischer Copyright 2020" #property link "https://mql5.tfsystem.de" #property version "1.00" #property strict //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ class PTestC2 { private: string text; //PTestC2 *m_test; public: PTestC2(); ~PTestC2(); //PTestC2(PTestC2 &test) //{ // m_test=test; //} //virtual void init(void); //virtual void ChartEvent(const int id,const long &lparam,const double &dparam,const string &sparam); virtual void SetText(string aText) { text=aText; } virtual string GetText(void) { return(text); } }; PTestC2 trade; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ PTestC2::PTestC2() : text("") { } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ PTestC2::~PTestC2() { } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ //void PTestC2::init(void) //{ // Print(__FUNCTION__); //} ////+------------------------------------------------------------------+ ////| | ////+------------------------------------------------------------------+ //void PTestC2::ChartEvent(const int id,const long &lparam,const double &dparam,const string &sparam) //{ // Print(__FUNCTION__); //} //+------------------------------------------------------------------+