Error LNK2019

Posts 115 of 32 · Page 1 of 3
Error LNK2019
I'm trying to compile a hack, and I kept getting the error:

Can not open d3dx9.lib, file or directory does not exist.

I finally fixed that but then I get another problem:

Code:
1>Linking...
1>Base.obj : error LNK2019: unresolved external symbol _D3DXCreateFontA@48 referenced in function __catch$?ReFont@@YAXPAUIDirect3DDevice9@@@Z$0
1>C:\Users\Me\Documents\Visual Studio 2008\Projects\Hack\Debug\Menu.dll : fatal error LNK1120: 1 unresolved externals
Can someone tell me what is wrong, I looked up help and it didn't work.
I think it because you used the Refont lot of time ... /
I not wondering why nessesarilly, Is there a way to fix it?
It's hard to fix that without seeing you code.
Do you have an SDK correctly linked? If you do just add

#pragma comment( lib, "d3dx9.lib" )

up top.
I think you dont have the function you define... its like this:

You are defining it in a class but arent using it..

it compiles fine but when you link the .obj to make a .dll it notices that you dont have the function even tho you dont use it so it complies fine... is that it?
make sure its Multi Byte

Source :

Crash ( he helped me fix the same error by checking if it was multi byte )

you can change it from > View > HackName Properties > General
OMg, why are you helping me with the d3dx9.lib thing? I said that I fixed that and now I have a different problem. It is saying

"fatal error LNK1120: 1 unresolved externals"

I used COOlGuys menu base, and even trying to compile that without changeing anything is giveing the same error.
how bout we not help you at all with that arrogant attitude
Quote Originally Posted by scimmyboy View Post
how bout we not help you at all with that arrogant attitude
No thank or reputation buttons on mobile ):
Quote Originally Posted by freedompeace View Post
No thank or reputation buttons on mobile ):
I pressed it for you
erase the "d3d9.lib" from your project and go to

Project->Properties->General->Character Set->Unicode.
Quote Originally Posted by DeadLinez View Post
erase the "d3d9.lib" from your project and go to

Project->Properties->General->Character Set->Unicode.
XD

Can we also check if he's making a console application?
I am useing COOlGuys' Menu Base:
I have the project as .dll
I have NOT changed any of the workings of the script, just added stuff to it useing feature already in the script.
Even trying to build COOlGuys base directly from download, not changeing anythin it wtill does not work, so there is no problem with the code itself if he got it compiled.

The only reason I posted about the d3dx9 error is because that "was" an error that happened, the is now fixed, I only put it in here incase it might have something to do with the current error which it and unresolved symbol.
Erase everything.

/
Posts 115 of 32 · Page 1 of 3

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?