在网上下了个在wince上跑的MP3播放器代码,编译通过 了,就是在执行的出了问题
CoCreateInstance of OLE control {22D6F312-B0F6-11D0-94AB-0080C74C7E95} failed.
>>> Result code: 0x80040154
>>> Is the control is properly registered?
Warning: Resource items and Win32 Z-order lists are out of sync. Tab order may be not defined well.
反编译后,返回到代码处,是在OCCCONT.CPP处,代码如下:
if (hwndCtrl == NULL)// 此处出错!!!
{
hwndCtrl = ::GetDlgItem(m_pWnd->GetSafeHwnd(),pOccDlgInfo->m_pItemInfo.nId);
TRACE(traceAppMsg, 0, "Warning: Resource items and Win32 Z-order lists are out of sync. Tab order may be not defined well.\n");
}
COleControlSiteOrWnd *pTemp =
new COleControlSiteOrWnd(
hwndCtrl,
pOccDlgInfo->m_pItemInfo.bAutoRadioButton);
ASSERT(IsWindow(pTemp->m_hWnd));
不知道原因,请高手指点!