Problem with Dialogs....
-
Hi ... I have asked this question but nobody answered ... I want to call a function in the parent class of a dialog... How to do that? p.s When I include parent header file in the child and child header file in header I get this error: /////// Form1 #include "Form2.h" Form2 ^f=gcnew Form2; f->ShowDialog(); /////////Form2 #include "Form1.h" Error: syntax error : identifier 'Form2' error C2065: 'f' : undeclared identifier error C2065: 'Form2' : undeclared identifier error C2227: left of '->ShowDialog' must point to class/struct/union/generic type
Every new thing you learn,Gives you a new personality.
-
Hi ... I have asked this question but nobody answered ... I want to call a function in the parent class of a dialog... How to do that? p.s When I include parent header file in the child and child header file in header I get this error: /////// Form1 #include "Form2.h" Form2 ^f=gcnew Form2; f->ShowDialog(); /////////Form2 #include "Form1.h" Error: syntax error : identifier 'Form2' error C2065: 'f' : undeclared identifier error C2065: 'Form2' : undeclared identifier error C2227: left of '->ShowDialog' must point to class/struct/union/generic type
Every new thing you learn,Gives you a new personality.
Is the Form2 class in a different namespace than the code throwing the errors? Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Is the Form2 class in a different namespace than the code throwing the errors? Mark
Mark Salsbery Microsoft MVP - Visual C++ :java: