using Visual Studio 2008. as of today, some reason if I create a new MFC Dialog based C++ project, add an MFC class CTmp to it and then reference this is the Dlg.cpp ...
// Ctest4Dlg dialog
class Ctest4Dlg : public CDialog
{
// Construction
public:
Ctest4Dlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
enum { IDD = IDD_TEST4_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support