我仿照别人写了一个对话框的类继承自CDialogBar,其中有两个函数如下:BOOL CDialogBarLeft::Create(CWnd* pParentWnd, UINT nIDTemplate, UINT nStyle, UINT nID)
{
if(!Create(pParentWnd, MAKEINTRESOURSE(nIDTemplate), nStyle, nID))
return FALSE; if(!OnInitDialogBar())
return FALSE;
return TRUE;
}BOOL CDialogBarLeft::Create(CWnd* pParentWnd, LPCTSTR lpszTemplateName, UINT nStyle, UINT nID)
{
if(!CDialogBar::Create(pParentWnd, lpszTemplateName, nStyle, nID))
return FALSE;
if(!OnInitDialogBar())
return FALSE;
return TRUE;
}编译后结果却说
e:\c\MousePen\DialogBarLeft.cpp(21): error C3861: 'MAKEINTRESOURSE': identifier not found, even with argument-dependent lookup请问MAKEINTRESOURSE是什么?如果要自己定义的话该怎么定义?
谢谢谢谢!!!!
{
if(!Create(pParentWnd, MAKEINTRESOURSE(nIDTemplate), nStyle, nID))
return FALSE; if(!OnInitDialogBar())
return FALSE;
return TRUE;
}BOOL CDialogBarLeft::Create(CWnd* pParentWnd, LPCTSTR lpszTemplateName, UINT nStyle, UINT nID)
{
if(!CDialogBar::Create(pParentWnd, lpszTemplateName, nStyle, nID))
return FALSE;
if(!OnInitDialogBar())
return FALSE;
return TRUE;
}编译后结果却说
e:\c\MousePen\DialogBarLeft.cpp(21): error C3861: 'MAKEINTRESOURSE': identifier not found, even with argument-dependent lookup请问MAKEINTRESOURSE是什么?如果要自己定义的话该怎么定义?
谢谢谢谢!!!!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货