Crazy Linker problem.
I havent used GapiDraw in quite a while. I decided to start developing a new game with it. I basically took the "Simple" apps skeleton and that compiled just fine. I tried to add a font and now i get linker errors.
This is the error I get:
Bazillionaire error LNK2019: unresolved external symbol "__declspec(dllimport) public: long __thiscall CGapiSurface::CreateSurface(unsigned long,struct HINSTANCE__ *,unsigned long,char const *)" (__imp_?CreateSurface@CGapiSurface@@QAEJKPAUHINSTANCE__@@KPBD@Z) referenced in function "public: virtual long __thiscall CMyApplication::CreateSysMemSurfaces(class CGapiDisplay *,struct HINSTANCE__ *)" (?CreateSysMemSurfaces@CMyApplication@@UAEJPAVCGapiDisplay@@PAUHINSTANCE__@@@Z)
And this is the code its having trouble with:
I am importing my PNG into my project in the "PNG" folder. Is there anything that change or am I just missing something simple?
I havent used GapiDraw in quite a while. I decided to start developing a new game with it. I basically took the "Simple" apps skeleton and that compiled just fine. I tried to add a font and now i get linker errors.
This is the error I get:
Bazillionaire error LNK2019: unresolved external symbol "__declspec(dllimport) public: long __thiscall CGapiSurface::CreateSurface(unsigned long,struct HINSTANCE__ *,unsigned long,char const *)" (__imp_?CreateSurface@CGapiSurface@@QAEJKPAUHINSTANCE__@@KPBD@Z) referenced in function "public: virtual long __thiscall CMyApplication::CreateSysMemSurfaces(class CGapiDisplay *,struct HINSTANCE__ *)" (?CreateSysMemSurfaces@CMyApplication@@UAEJPAVCGapiDisplay@@PAUHINSTANCE__@@@Z)
And this is the code its having trouble with:
- Code:
m_font.CreateSurface(GDSURFACE_SYSTEMMEMORY, hInstance, MYFONT, TEXT("PNG"));
m_font.CreateFont(NULL, RGB(255,0,255), NULL, NULL);
I am importing my PNG into my project in the "PNG" folder. Is there anything that change or am I just missing something simple?