D
dev_15
Hi, I have a problem with the following code, which doesn't compile on
the MSVC8 compiler.
CReportScreen derives from CDialog // although this probably has
nothing to do with it
HBITMAP is a typedef for an int
CReportScreen(CWnd* pParent = NULL, HBITMAP bmpArray[3]);
CReportScreen::CReportScreen(CWnd* pParent , HBITMAP bmpArray[3])
: CDialog(CReportScreen::IDD, pParent),
{
}
then i instantiate the CReportScreen as follows :
CReportScreen reportDlg(NULL, m_hLogoBmpArray);
where m_hLogoBmpArray is declared as HBITMAP m_hLogoBmpArray [3]
I'm getting the following compile error
error C2548: 'CReportScreen::CReportScreen' : missing default
parameter for parameter 2
in the header file declaration
CReportScreen(CWnd* pParent = NULL, HBITMAP bmpArray[3]);
Thanks
the MSVC8 compiler.
CReportScreen derives from CDialog // although this probably has
nothing to do with it
HBITMAP is a typedef for an int
CReportScreen(CWnd* pParent = NULL, HBITMAP bmpArray[3]);
CReportScreen::CReportScreen(CWnd* pParent , HBITMAP bmpArray[3])
: CDialog(CReportScreen::IDD, pParent),
{
}
then i instantiate the CReportScreen as follows :
CReportScreen reportDlg(NULL, m_hLogoBmpArray);
where m_hLogoBmpArray is declared as HBITMAP m_hLogoBmpArray [3]
I'm getting the following compile error
error C2548: 'CReportScreen::CReportScreen' : missing default
parameter for parameter 2
in the header file declaration
CReportScreen(CWnd* pParent = NULL, HBITMAP bmpArray[3]);
Thanks