[TUT] How to fix the D3D errors in C++ - Gellin's Base

Posts 1–15 of 25 · Page 1 of 2
[TUT] How to fix the D3D errors in C++ - Gellin's Base
Here's the errors:
Code:
1>------ Build started: Project: CaBase, Configuration: Release Win32 ------
1>  Base.cpp
1>Base.obj : error LNK2001: unresolved external symbol _D3DXCreateFontA@48
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
basically what it is saying is it doesnt recognize the D3DcreatefontA commands and symbols stuff... well its because you need to import your directX items into your c++.

go to C/C++> Genereal settings in Project Settings / properties.

Here's what it looks like.



click where the red arrow is and select edit.

then click the button with the folder (where the red arrow is on the pic below)


now click the [...] button and browse for your DirectX SDK file in program files. go down to Include FOlder and click Okay [shown in the pic below]



so now that should fix that error.. but the problem now is We dont have the .lib for it. So now we need to go to Directories in Project properties. [shown below]



do the same thing as before but this time go to the Lib folder. select the 64 folder if ur on 64bit and the 86 folder if ur on 32-bit. [shown below]



so that should fix all your errors.. just change the addies, some of the coding (for the number of items in menu) then debug and u should be good to go!


Thanks for looking and be sure to press thanks!
Good work flames, should help them noobies
how i do this in 2008 verison i got up to

this step before it not working
are you kidding me? if you cant figure that out you will never beable to code!!!
Quote Originally Posted by zmansquared View Post
are you kidding me? if you cant figure that out you will never beable to code!!!
Someone asked for it lol :P
Well if they would install sdk after c++ it would auto include it
Lol directed right toward me.
Thanks
Edit: Im retarded lol I included the wrong type of lib folder on my 64-bit!
Does anyone know how to find the player pointer??
if people can't even figure that out for themselves they should not be making hacks yet...
Edit: Nevermind thank you
Edit2: Lol it fixed the first error after including both 64/32 bit folders but:
1>Base.obj : error LNK2001: unresolved external symbol "class cBase Base" (?Base@@3VcBase@@A)
Thise still happens
Quote Originally Posted by whatup777 View Post
Edit: Nevermind thank you
Edit2: Lol it fixed the first error after including both 64/32 bit folders but:
1>Base.obj : error LNK2001: unresolved external symbol "class cBase Base" (?Base@@3VcBase@@A)
Thise still happens
i think you didnt define cBase... id have to c ur whole code to figure it out.
Quote Originally Posted by CAFlames View Post


i think you didnt define cBase... id have to c ur whole code to figure it out.
hey i keep getting this, i have spent like 2 weeks looking at my code and cant figure out whats wrong...
[php]--------------------Configuration: gellian - Win32 Debug--------------------
Linking...
gellian.obj : error LNK2001: unresolved external symbol "public: void __thiscall cMenu::RenderMenu(void)" (?RenderMenu@cMenu@@QAEXXZ)
gellian.obj : error LNK2001: unresolved external symbol "class cMenu Menu" (?Menu@@3VcMenu@@A)
gellian.obj : error LNK2001: unresolved external symbol "public: void __cdecl cDirectx:rawString(int,int,unsigned long,struct ID3DXFont *,char const *,...)" (?DrawString@cDirectx@@QAAXHHKPAUID3DXFont@@PBDZZ)
gellian.obj : error LNK2001: unresolved external symbol "class cDirectx Directx" (?Directx@@3VcDirectx@@A)
gellian.obj : error LNK2001: unresolved external symbol "public: void __thiscall cDirectx::Hook(void)" (?Hook@cDirectx@@QAEXXZ)
Debug/gellian.dll : fatal error LNK1120: 5 unresolved externals
Error executing link.exe.

gellian.dll - 6 error(s), 0 warning(s)
[/php]
THANX
From a quick glance it looks like you didnt define something? i can tv you tomorrow if you need
Posts 1–15 of 25 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?