描述:
说是atlframe.h头文件中的错误。
#if (_WIN32_IE >= 0x0500)
struct _ChevronMenuInfo
{
HMENU hMenu;
LPNMREBARCHEVRON lpnm;
bool bCmdBar;
};
#endif //(_WIN32_IE >= 0x0500)
报了LPNMREBARCHEVRON lpnm;这句语句的错误,具体错误如下,请高手指教
:\ATL-WTL\temp\include\atlframe.h(274) : error C2146: syntax error : missing ';' before identifier 'lpnm'
E:\ATL-WTL\temp\include\atlframe.h(905) : see reference to class template instantiation 'WTL::CFrameWindowImplBase<TBase,TWinTraits>' being compiled
E:\ATL-WTL\temp\include\atlframe.h(274) : error C2501: 'LPNMREBARCHEVRON' : missing storage-class or type specifiers
E:\ATL-WTL\temp\include\atlframe.h(905) : see reference to class template instantiation 'WTL::CFrameWindowImplBase<TBase,TWinTraits>' being compiled
E:\ATL-WTL\temp\include\atlframe.h(274) : error C2501: 'lpnm' : missing storage-class or type specifiers
E:\ATL-WTL\temp\include\atlframe.h(905) : see reference to class template instantiation 'WTL::CFrameWindowImplBase<TBase,TWinTraits>' being compiled
解决方案1:
Look at the comment below:
search the Platform SDK "first".
-------
The problem is fixed by adjusting the search path for includes and libs to search
the Platform SDK first.
Modify the content below:
VC-IDE (menu): Tools-->options...-->Directories--->Include files
................................--->Library files
您可能想查找下面的文章:
- 看了一下WTL,对这个代码看不懂
- 要用atl写个控件,涉及到界面的,怎么将wtl和atl结合起来用呐?用wtl来做控件的界面
- 在ATL中使用WTL中的CFileDialog实现预览功能出现的不刷新问题,高手进
- 使用WTL库,编译提示“cannotopenincludefile"atlresh"”,这是怎么回事?
- WTL能否用于ATL做COM组件的界面?需要注意什么?
- WTL中,怎么改变lineto画线的颜色和粗细?
- WTL问题,MainFrame加一个Destory响应怎么会这样
- 请大家帮忙看看这个:关于wtl
- WTL,CCodePageCombo继承CComboBoxT<ATL::CWindow>类,需要响应下拉菜单CloseUp的消息
- WTL下如何添加Mediaplayer控件