How to access to other File?

 

I want to create an instance in the main process and access the instance members and methods. How can I write to communicate between files?

I can't understand the reference.

I think it's using #resource, #import, or #include.

[Test.mq5]

class Test{
   public:
   string success;
   void Test(){
   	Comment ( "Success." );
        success = "Yeah";
        Comment (this.success);
   }
};


[Main.mq5]

#resource  "Test.mq5" 

void OnStart (){
   Test NF = new Test();
   Comment(NF.success);
}

Thank you for reading.

 

[Test.mqh]

class Test{
   public:
   string success;
   void Test(){
   	Comment ( "Success." );
        success = "Yeah";
        Comment (this.success);
   }
};


[Main.mq5]

#include "Test.mqh" 

void OnStart (){
   Test NF = new Test();
   Comment(NF.success);
}