[WinCE]关于error LNK2019

wtu8924   2007-3-17 14:17 楼主
部分代码:
testce_llkView.h
public:
        afx_msg void OnMenuFirst();
public:
        afx_msg void OnLButtonDown(UINT nFlags, CPoint point);

testce_llkVies.cpp:
ON_COMMAND(ID_MENU_FIRST, &Ctestce_llkView::OnMenuFirst)
ON_WM_LBUTTONDOWN()

void Ctestce_llkView::OnMenuFirst(void)
{// TODO: Add your command handler code here
        int i,j;
        int temprand;
        CString str;
        CRect  rect;
...
}

void Ctestce_llkView::OnLButtonDown(UINT nFlags, CPoint point)
{int  iTop,iLeft,iRight,iBottom;
        CRect  rect;
...
}

编译后出现:
Linking...
testce_llkView.obj : error LNK2019: unresolved external symbol time referenced in function "public: void __cdecl Ctestce_llkView::OnMenuFirst(void)" (?OnMenuFirst@Ctestce_llkView@@QAAXXZ)
testce_llkView.obj : error LNK2019: unresolved external symbol timeGetTime referenced in function "public: void __cdecl Ctestce_llkView::OnLButtonDown(unsigned int,class CPoint)" (?OnLButtonDown@Ctestce_llkView@@QAAXIVCPoint@@@Z)
Pocket PC 2003 (ARMV4)\Debug\testce_llk.exe : fatal error LNK1120: 2 unresolved externals
Build log was saved at "file://c:\Documents and Settings\user\My Documents\Visual Studio 2005\Projects\testce_llk\testce_llk\Pocket PC 2003 (ARMV4)\Debug\BuildLog.htm"
testce_llk - 3 error(s), 0 warning(s)


刚开始接触WinCE,请大家帮忙,谢谢

回复评论

暂无评论,赶紧抢沙发吧
电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 京公网安备 11010802033920号
    写回复