DirectX issue, Multiplayer mod.

Hey guys.

Here's the errors im recieving:

1
2
3
1>CChatwindow.obj : error LNK2001: unresolved external symbol "public: __thiscall CD3DFont::~CD3DFont(void)" (??1CD3DFont@@QAE@XZ)
1>CChatwindow.obj : error LNK2001: unresolved external symbol "public: __thiscall CD3DFont::CD3DFont(char const *,unsigned long,unsigned long)" (??0CD3DFont@@QAE@PBDKK@Z)
1>..\..\Release\vco.dll : fatal error LNK1120: 2 unresolved externals


And yes i know i have to include .lib's so i did!

1
2
3
4
5
RakNetLibStatic.lib
ws2_32.lib
d3dx9.lib
detours.lib
d3d9.lib


But still i recevie the errors?

Part of the cause:

 
m_pD3DFont = new CD3DFont(CHAT_FONT, CHAT_FONT_SIZE +1, 0);


Any ideas guys?

Cheers!
Last edited on
Cheers mate, but i already #included it in the main.h, but I'll give copying both a go.
included what? d3dfont.cpp?
That's not how it works.. You have to add it to your project.
I got it to work, but the game crashes when i create the instance, i included d3dfont.cpp and .h into my project, main.h has d3dfont.h, d3dfont.cpp includes d3dfont.h, and i get no compiling errors, just need to figure the game crash errors.

1
2
3
// Create instances of the chat and input classes.
		//pChatWindow = new CChatWindow(pD3DDevice);
		//pCmdWindow = new CCmdWindow(pD3DDevice); 


causes the game to crash when loading, but when its commented out it doesnt crash and runs fine,
Last edited on
Topic archived. No new replies allowed.