C ++库上未解决的外部符号错误

时间:2015-07-22 14:16:55

标签: c++ class winapi

我在某个IDE中使用了一个库而我正在获取未解析的外部符号,但我找不到错误的位置。

我已经 正常工作

pObPanel panel = ObPanelAPI::GetPanelByName("*Current"); //Gets a panel object
HWND hPanel = panel->hHandle(); //Gets an HWND from the panel object

但是在调用此内容时,我收到 错误

pObCtrl ctrl = panel->pGetChildControlByHandle(hwnd);

错误

LINK : error LNK2019: external symbol "public: class ObCtrl * __thiscall ObPanel::pGetChildControlByHandle(struct HWND__ *)" (?pGetChildControlByHandle@ObPanel@@QAEPAVObCtrl@@PAUHWND__@@@Z) unresolved which is in the function "public: static int __stdcall jmmvHwnd::EnumProc(struct HWND__ *,long)" (?EnumProc@jmmvHwnd@@SGHPAUHWND__@@J@Z)

这是Class所在的Header文件:

class ObPanel: public ObCtrObj, public ObStateWin, public ObEvtHandler{
    ...
protected:
    ...
public:
    ...
protected:
    ...
public:
    ...                           
    HWND OBEXPORT hHandle();
    ...
    pObCtrl pGetChildControlByHandle( HWND h_wnd );
    ...
public:
    ...
protected:
    ...
public:
    ...
};

hHandle()的作品 pGetChildControlByHandle()错误

为什么?

0 个答案:

没有答案