Jump to content
  • Advertisement
Sign in to follow this  

MFC C++ Class definition problems

This topic is 4610 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!