cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Windows form
Windows form
Sep 24, 2013 at 11:39am UTC
mgehad
(22)
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 ?
Sep 24, 2013 at 12:30pm UTC
mutexe
(2372)
is it private?
Sep 24, 2013 at 1:19pm UTC
mgehad
(22)
No it's Protected , I even changed it to public but the same error.
Sep 24, 2013 at 1:31pm UTC
mutexe
(2372)
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
Sep 24, 2013 at 1:34pm UTC
Topic archived. No new replies allowed.