Good evening!
Help to deal with the most ridiculous and stupid question: I have forms, parent and child, they can all interact with each other ....
#include "StdAfx.h" #include "Form1.h" #include "Form3.h" #include <iostream> #include <windows.h> #include <tchar.h> //================================ #define MAX_CLIENTS 64 int Count=0; namespace PA { bool testing(){//not form1 member ???????->richTextBox1->Text=""; //Не получается изменить или обратиться к переменной Form1 return 0; } void Form1::trdMethod(){ testing(); } void Form1::Form1(){} }
There is a function that can access global variables (Count) in a cpp file ... And how can we get from it to any variable declared in the class of the parent window ??? Already how much was carried, and to no avail (