Re: Add a CDialog variable to a class
- From: David Wilkinson <no-reply@xxxxxxxxxxxx>
- Date: Tue, 05 Sep 2006 09:28:17 -0400
ja wrote:
Hi, all
I want to add a member variable of CAboutDlg type to a existing class's head file, but the complier always tell me the following information like:
my code : CAboutDlg * myDlg; //def in a class head file
the error: error C2143: lack of ";" (before * ) //
it seems the complier does not know what is CmyAppDlg?
Could anybody tell me why?
Thanks in advance!
-ja
ja:
Just forward declare CAboutDlg:
// MyClass.h
class CAboutDlg; // forward declaration
class MyClass
{
private:
CAboutDlg* myDlg;
};
David Wilkinson
.
- References:
- Add a CDialog variable to a class
- From: ja
- Add a CDialog variable to a class
- Prev by Date: Re: newbie question: how to build all configurations at once
- Next by Date: Re: Changing color and Font of CString
- Previous by thread: Add a CDialog variable to a class
- Next by thread: Re: Add a CDialog variable to a class
- Index(es):