Windows form

Hello,
I'm working on a windows form application using VS10 ,
I've created a DialogBox (Graphically) and I see that it inherits from the main From. However, the variables I declared in Form.h are not seen in DialogBox.h

Error 4 error C2065: 'connection' : undeclared identifier

Any tips for solving that please ?



is it private?
No it's Protected , I even changed it to public but the same error.
then you're not deriving it from it then.

When you say "main form", do you mean the MFC MainFrm class?

edit:

class CDialog : public CWnd

a dialog inherits from CWnd.

and MainFrm (eventually) inherits from CWnd, but not in the same heirachy by the looks if it.

Last edited on
Topic archived. No new replies allowed.