V
Vince
Hi,
I have two classes that are mutually included So I Use forward declaration
and it works fine as long as I declare a pointer:
In WorkerThreadDemoDlg.h :
//forward declaration
class CMyThread;
class CWorkerThreadDemoDlg : public CDialog
{
public:
CWorkerThreadDemoDlg( CWnd* pParent = NULL ); // standard constructor
protected:
CMyThread* m_pCMyThread;
....
}
if I want to replace CMyThread* by a CMyThread it doesn't compile even if my
implementation I am not even using it.
I have two classes that are mutually included So I Use forward declaration
and it works fine as long as I declare a pointer:
In WorkerThreadDemoDlg.h :
//forward declaration
class CMyThread;
class CWorkerThreadDemoDlg : public CDialog
{
public:
CWorkerThreadDemoDlg( CWnd* pParent = NULL ); // standard constructor
protected:
CMyThread* m_pCMyThread;
....
}
if I want to replace CMyThread* by a CMyThread it doesn't compile even if my
implementation I am not even using it.