try:
D3DXCreateFont(lpDevice, 12, 0, FW_BOLD, 1, FALSE, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_DONTCARE,
(LPCSTR)"Arial", &g_font);
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?
"Time is the wisest counselor of all." - Pericles
try:
D3DXCreateFont(lpDevice, 12, 0, FW_BOLD, 1, FALSE, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_DONTCARE,
(LPCSTR)"Arial", &g_font);
1>.\CMenu.cpp(14) : error C2664: 'D3DXCreateFontW' : cannot convert parameter 11 from 'LPCSTR' to 'LPCWSTR'
But, thanks, and also, do you perhaps have the bomb positions as I don't have an AutoPlant/Defuse addie and apparently there are none around atm (I am not able to retrieve them, I have W7..)? It would help a lot. Making a NoMenu PowerLeveler for my GF ^^
"Time is the wisest counselor of all." - Pericles
dont got it use multi bit
Sigh, alright, does anyone else have any or perhaps a position logger?
"Time is the wisest counselor of all." - Pericles