Sign in to follow this  
Bandwidth

MFC C++ Class definition problems

Recommended Posts

I need help.. I am doing MFC programming now.. The problem I am having is that I am trying to decalare a member variable to my main class, CTestApp. I wanto to keep track of the handle to a modeless dialogbox that I have made. It is a derrived class from CDialog called CDlg(i've overloaded a few functions). The problem is that it won't recognize CDlg as a valid type to declare.. As of now I declare it as CDialog but this is just a hack and I want to find out what I am doing wrong. I'm using "Programming windows with MFC, Second Edition" by Jeff Prosise as reference. But the codes from the book compiled just fine... so I am guessing I'm missing something.

Share this post


Link to post
Share on other sites

I've included Dlg.h in stdafx.h the declaration for CTestApp went fine but the thing now won't recognize the IDD in the declaration of CDlg.

So i've included Resource.h and it went fine.
Thank you very much. It was a big help.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this