鸿 网 互 联 www.68idc.cn

VS2005 WinCE MFC调用SHCreateMenuBar链接出错,该怎么解决

来源:互联网 作者:佚名 时间:2015-10-26 08:27
VS2005 WinCE MFC 调用 SHCreateMenuBar链接 出错 直接贴吗 //Create a MenuBar for WCE devices SHMENUBARINFO mbi; memset(mbi, 0, sizeof(SHMENUBARINFO)); mbi.cbSize = sizeof(SHMENUBARINFO); mbi.hwndParent = GetSafeHwnd(); mbi.nToolBarId = IDM_B
VS2005 WinCE MFC调用SHCreateMenuBar链接出错
直接贴吗

//Create a MenuBar for WCE devices
SHMENUBARINFO mbi;
memset(&mbi, 0, sizeof(SHMENUBARINFO));
mbi.cbSize = sizeof(SHMENUBARINFO);
mbi.hwndParent = GetSafeHwnd();
mbi.nToolBarId = IDM_BTM_OKBACK;
mbi.hInstRes = theApp.m_hInstance;
mbi.nBmpId = 0;
mbi.cBmpImages = 0;

if (FALSE == ::SHCreateMenuBar(&mbi))
{
::MessageBox(GetSafeHwnd(), L"SHCreateMenuBar Failed", L"Error", MB_OK);
EndDialog(IDCANCEL);
return FALSE;
}

链接错误:
error LNK2001: 无法解析的外部符号 SHCreateMenuBar

------解决方案--------------------------------------------------------
在工程中链接aygshell.lib
------解决方案--------------------------------------------------------
会不会是版本不匹配?
------解决方案--------------------------------------------------------

Requirements

--------------------------------------------------------------------------------


 


Header

sipapi.h



Library

coredll.lib



Windows Embedded CE

Windows CE 2.10 and later



Windows Mobile

Windows Mobile Version 5.0 and later

------解决方案--------------------------------------------------------
和定制系统相关,定制系统的时候被拿掉了
网友评论
<