Stumbled Upon An Error
I was coding a simple D3D Menu, and everything is good except for this:
m_lpDevice = lpDevice;
ID3DXFont *g_font=NULL;
D3DXCreateFont(lpDevice, 12, 0, FW_BOLD, 1, FALSE, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Arial", &g_font);
And this is the output:
1>Linking...
1>CMenu.obj : error LNK2019: unresolved external symbol _D3DXCreateFontA@48 referenced in function "public: __thiscall Menu::Menu(struct IDirect3DDevice9 *,int,int)" (??0Menu@@QAE@PAUIDirect3DDevice9@@HH@Z)
1>C:\Users\User\Documents\Visual Studio 2008\Projects\easy_menu\Debug\easy_menu.dll : fatal error LNK1120: 1 unresolved externals
Can anyone help?
try:
D3DXCreateFont(lpDevice, 12, 0, FW_BOLD, 1, FALSE, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_DONTCARE,
(LPCSTR)"Arial", &g_font);