How to access to other File? 新しいコメント Reiji Nohara 2019.10.18 19:15 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. How to check if file is updated completely or not? [WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. Should we run FileOpen() again after the file have changed by another EA? Alain Verleyen 2019.12.05 03:40 #1 [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); } 新しいコメント
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]
[Main.mq5]
Thank you for reading.