My newly added function is called AttachDevice, i look at the dll under dependency walker and my method is there - so it seems to be allright. But linker says that it cannot find it. I just don't get it. Maybe there is something wrong with exporting the function dll? But i'v made it in the same way that createdevice is exported.
I know that this is stupid question, but i don't have any ideas.
This is my error code:
MFCDialoG error LNK2019: unresolved external symbol "__declspec(dllimport) class irr::IrrlichtDevice * __cdecl irr::AttachDevice(enum irr::video::EDriverType,struct HWND__ *,unsigned int,bool,class irr::IEventReceiver *,wchar_t const *)" (__imp_?AttachDevice@irr@@YAPAVIrrlichtDevice@1@W4EDriverType@video@1@PAUHWND__@@I_NPAVIEventReceiver@1@PB_W@Z) referenced in function "public: int __thiscall CMFCDialoGDlg::InitIrrlicht(void)" (?InitIrrlicht@CMFCDialoGDlg@@QAEHXZ)
and this is my function
Code: Select all
IRRLICHT_API IrrlichtDevice* AttachDevice(
video::EDriverType deviceType,HWND _hWnd,
u32 bits,
bool stencilbuffer,
IEventReceiver* receiver,
const wchar_t* sdk_version_do_not_use)
{....}