News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Getting DX 9 up and running

Started by Nacho, January 09, 2006, 02:53:18 AM

Previous topic - Next topic

Nacho

Hello there! This is my first post so let me introduce myself: my name is Ignacio and I´m a sw engineering student from Argentina.

Anyway, I´m having some trouble to get a DX 9 sample application -which makes use of the DirectX Sample Framework- running. So far so good I created a new Win32GUI project inside a blank workspace and included all the relevant files and paths. Nonetheless, the compiler refuses to compile saying there´s a problem in one of the files from the Sample Framework (DXUTmisc.h). More specifically, in the line 112:

struct DXUTCache_Font : public D3DXFONT_DESC

because it doesn´t know what D3DXFONT_DESC mean. D3DXFONT_DESC is defined in d3dx9core.h. I´ve traced the inclusion sequence and d3dx9core.h is included by d3dx9.h which is included before DXUTmisc.h. I´ve tried switching the compiler from GCC to the Visual C++ Toolkit 2003 and I get the exact same errors. Has anybody experienced a similar problem? If so, how did you solve them?

Thanks in advance!

--Nacho

sethjackson


Nacho

Quote from: sethjackson on January 09, 2006, 03:05:23 AM
Not sure if this will help or not, but you might read it anyways.....

http://forums.next.codeblocks.org/index.php?topic=1373.0



Thanks for the link but, unfortunately, they´re not discussing the same problems I´m having (maybe I will after I solve the problems in the compilation phase and get to the linking process, I hope not!  :P)

--Nacho

Vampyre_Dark

http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/directx9_c_Summer_04/directx/graphics/reference/d3dx/structures/D3DXFONT_DESC.asp

Header   d3dx9core.h
Minimum operating systems   Windows 98

Did you define your Target OS? #define WINVER 0x4000 or whatever. It might only be defined if you have the right OS, I've seen this before.
C::B Wishlist
~BOYCOTT THE EVIL YELLOW BOXES~

Michael

Hello,

In the forum there are 2-3 topics about DirectX (may be more). You can try an (advanced) search to get them. Probably, you will get an answer to your problem (or at least some helpful info :)).

Michael
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

Nacho

Vampyre_Dark and Michael: Thanks for your replies! I´ve finally managed to compile a DX 9 project using the GCC compiler included with CodeBlocks. Do you guys recommend switching to the Visual C++ Toolkit or should I stick to GCC?

Thanks again for all your help!

--Nacho

Vampyre_Dark

Quote from: Nacho on January 13, 2006, 02:32:13 AMShould I stick to GCC?
That will start a religious war. Use whichever works for you. Don't let someone else tell you which you need to use.  :lol:
C::B Wishlist
~BOYCOTT THE EVIL YELLOW BOXES~

mandrav

Quote from: Nacho on January 13, 2006, 02:32:13 AM
Do you guys recommend switching to the Visual C++ Toolkit or should I stick to GCC?

I agree with Vampyre_Dark, especially now that debugging is supported for both compilers ;) (although I prefer debugging with GDB, but that's just me).
Be patient!
This bug will be fixed soon...

Michael

I agree with Vampyre_Dark and Mandrav :D. If I can give you an advice, try both and see with which of them you feel more comfortable and or which works better for your project.

Michael
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

Nacho

Ok. I´ll try, then! Thanks again for all your input.

--Nacho