Tell me please.

Project Windows Form, Visual Studio C ++.

I have a ClassNeuronNet.h file that describes a class that has the teach() method and the Form1.h project form, which has the #include "ClassNeuronNet.h" directive.

How can we use the teach() method to access a form element, for example, the Text property of the Label1 (Label->Text) label Label1 (Label->Text) ?

    1 answer 1

     #include "Form1.h" 

    To the ClassNeuronNet.cpp file

    Although it is not very beautiful. A prettier class with the teach method is to initialize with a shared object (of some class, for example, called DataBuffer) with the Form1 class.