I'm using a library in a certain IDE and I'm getting Unresolved external Symbol but I can't find out where the error is.
I've got this working fine:
pObPanel panel = ObPanelAPI::GetPanelByName("*Current"); //Gets a panel object
HWND hPanel = panel->hHandle(); //Gets an HWND from the panel object
But then I get the error when calling to this:
pObCtrl ctrl = panel->pGetChildControlByHandle(hwnd);
The error:
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)
This is the Header file where the Class is:
class ObPanel: public ObCtrObj, public ObStateWin, public ObEvtHandler{
...
protected:
...
public:
...
protected:
...
public:
...
HWND OBEXPORT hHandle();
...
pObCtrl pGetChildControlByHandle( HWND h_wnd );
...
public:
...
protected:
...
public:
...
};
hHandle()
works
pGetChildControlByHandle()
error
Why?