Discussion:
linker error about D3DXCreateFontW
(too old to reply)
Hanna-Barbera
2006-07-02 13:22:57 UTC
Permalink
Hi,

I'm using unicode in a project and it compiles and runs fine for me. I use
Summer2004 SDK (DX9c)
Someone else tried to compile the project and he gets linker errors only for
this one.
I am using other D3DX functions like D3DXMatrixMultiply (and other matrix
functions)
and also using D3DXCreateTextureFromFileEx

I'm using unicode all everywhere, so all the W versions of functions are
getting used.

Maybe his d3dx9.lib is no good?
Wessam Bahnassi
2006-07-02 20:17:25 UTC
Permalink
D3DX9.lib includes defiitions for all D3DX functions (both unicode and
ansi).
What is the exact error he's getting?
--
Wessam Bahnassi
Microsoft DirectX MVP,
Programmer
Electronic Arts
--
In|Structurez Arabic Gamedev Community
www.instructurez.com
Post by Hanna-Barbera
Hi,
I'm using unicode in a project and it compiles and runs fine for me. I use
Summer2004 SDK (DX9c)
Someone else tried to compile the project and he gets linker errors only for
this one.
I am using other D3DX functions like D3DXMatrixMultiply (and other matrix
functions)
and also using D3DXCreateTextureFromFileEx
I'm using unicode all everywhere, so all the W versions of functions are
getting used.
Maybe his d3dx9.lib is no good?
Hanna-Barbera
2006-07-02 19:08:46 UTC
Permalink
Standard linker error about unresolved external symbol

error LNK2001: unresolved external symbol ***@48
fatal error LNK1120: 1 unresolved externals

He is using april 2006 SDK

Is it possible to fix this without me download a huge SDK. I specially don't
want to use IExplorer so tht MS installs activeX controls.
Post by Wessam Bahnassi
D3DX9.lib includes defiitions for all D3DX functions (both unicode and
ansi).
What is the exact error he's getting?
--
Wessam Bahnassi
Microsoft DirectX MVP,
Programmer
Electronic Arts
--
In|Structurez Arabic Gamedev Community
www.instructurez.com
Hanna-Barbera
2006-07-02 19:14:51 UTC
Permalink
According to

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/
D3DXCreatefont.asp

my code (I use the 2004 summer SDK), it's fine and it can resolve to the
unicode version which has the same parameters.

The guy said he tried to compile on another machine and it gave
"D3DXCreateFont function does not take 12 parameters"
legalize+ (Richard [Microsoft Direct3D MVP])
2006-07-02 19:19:53 UTC
Permalink
[Please do not mail me a copy of your followup]
Post by Hanna-Barbera
The guy said he tried to compile on another machine and it gave
"D3DXCreateFont function does not take 12 parameters"
Again, this sounds like they are using a different version of the SDK
from you. Not just one version that's different, but they have two
machines which have different versions from you.
--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
<http://www.xmission.com/~legalize/book/download/index.html>
Pilgrimage 2006, Saturday September 23rd: <http://pilgrimage.scene.org>
North America's Longest Running Demoparty
Hanna-Barbera
2006-07-02 21:25:41 UTC
Permalink
Post by legalize+ (Richard [Microsoft Direct3D MVP])
Again, this sounds like they are using a different version of the SDK
from you. Not just one version that's different, but they have two
machines which have different versions from you.
It sounds to me the source of the problem is a SDK version.
The current SDK must be almost the same as mine. I guess the current one is
April 2006

This looks like the same page as in the help file for my summer 2004 SDK
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/
D3DXCreatefont.asp

I'm going to guess his d3dx9.lib is the wrong one.

legalize+ (Richard [Microsoft Direct3D MVP])
2006-07-02 19:19:04 UTC
Permalink
[Please do not mail me a copy of your followup]
Post by Hanna-Barbera
I'm using unicode in a project and it compiles and runs fine for me. I use
Summer2004 SDK (DX9c)
Someone else tried to compile the project and he gets linker errors only for
this one.
What version of the SDK are they using? They have to use the same
revision of the SDK as you.
--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
<http://www.xmission.com/~legalize/book/download/index.html>
Pilgrimage 2006, Saturday September 23rd: <http://pilgrimage.scene.org>
North America's Longest Running Demoparty
Loading...