当前位置: 代码迷 >> WinCE >> VS2005 WinCE MFC调用SHCreateMenuBar链接出错,该怎么解决
  详细解决方案

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

热度:22   发布时间:2016-04-28 13:06:48.0
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

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