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