where are you creating the font?
[HTML]1>------ Build started: Project: MenuHack, Configuration: Release Win32 ------
1>Compiling...
1>Linking...
1>Base.obj : error LNK2001: unresolved external symbol _D3DXCreateFont@48
1>C:\Documents and Settings\***\Desktop\CaBase\Release\CaBase.dll : fatal error LNK1120: 1 unresolved externals
==========
Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
=========/HTML]
I searched on MPGH and Google. These are my Includes:
[HTML]#include <windows.h>
#include <Winuser.h>
#include <stdio.h>
#include <d3d9.h>
#include <d3dx9.h>
#include <fstream>
#include <stdio.h>[/HTML]
I tried 3 different bases all day and all of them gave me this error!
where are you creating the font?
Dont ban me
J (08-11-2010)
Yes I did
[html]#pragma comment(lib, "d3dx9.lib")[/html]
and the font is in the RenderFrame
[html]
if( !Base.bSet.bInit )
{
D3DXCreateFont(pDevice, 15, 0, FW_BOLD, 1, 0, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Arial", &Directx.pFont);
Base.bSet.bInit = true;
}
if( Directx.pFont == NULL )
Directx.pFont->OnLostDevice();
else
{
Directx.DrawString(10, 22, D3DCOLOR_ARGB(255, 255, 0, 0), Directx.pFont, "<<-Public Menu Dimensions->>");
Menu.RenderMenu();
}[/html]
Edit: This is happening to everything, not just 1 menu.
"I tried 3 different bases all day and all of them gave me this error! "
Well then it's not finding it. Did you add the libraries directory in your project options?
No, I never got this ever, this is just random....
Where and what do I have to add to the libraries directory?
Edit:: What do I have to, not where, I all ready know.
Translated: I all ready know where I can add library Directories, just what is the directory I have to add?
Last edited by -Dimensions-; 08-11-2010 at 10:51 AM.
https://msdn.microsof*****m/en-us/libr...8VS.85%29.aspx
#include "D3dx9core.h"
#pragma comment(lib, "d3dx9.lib")
Edit: it looks like you've added your includes, but not your library files. Go to Tools->Options-> Projects and Solutions-> vC++ Directories -> Library Files-> New Path
Then browse through and find your directx sdk lib folder and choose x86 orr x64 based on your Operating system architecture.
Last edited by Revolvium; 08-11-2010 at 11:24 AM.
Still, not working. I tried probably every way.
Have you tried manually adding the libraries to the project like Void mentioned?
Yes, I have, and I tried TopBase. It worked 3 times, then I got Error LNK2001: unresolved external symbol _D3DXCreateFont@48 . The only thing I changed was text. So I re-extracted TopBase and I tried again and still Error LNK2001: unresolved external symbol _D3DXCreateFont@48 . I am going to re-install my DirectX SDK and Visual Studio C++ . I'll let everyone know if that worked.
you ethier did not link the lib
did not add its source and lib
or added more than one of its sources/libs
btw i fixed by only linking the x86 lib of the sdk
Last edited by TheFallenOwns; 08-12-2010 at 04:31 AM.
Google is full of answers...
-Rest in peace leechers-
Your PM box is 100% full.