There is a form Form1.h, in which there is the following description:
public ref class Form1 : public System::Windows::Forms::Form { ... }; How to describe a pointer to this form in another form or module?
Form1^ MainForm; - does not work, writes an error:
error C2061: Π‘ΠΈΠ½ΡΠ°ΠΊΡΠΈΡΠ΅ΡΠΊΠ°Ρ ΠΎΡΠΈΠ±ΠΊΠ°: ΠΈΠ΄Π΅Π½ΡΠΈΡΠΈΠΊΠ°ΡΠΎΡ "Form1".