User forums > Using Code::Blocks

Setting up DirectX with CodeBlocks

<< < (2/3) > >>

sethjackson:

--- Quote from: Vampyre_Dark on May 29, 2006, 08:28:55 pm ---There is nothing special about setting up directx in codeblocks, it's just a normal library.

Add the include and lib directories to your path setup, and then include the appropriate files as they are needed. Type all the lib names in the linker config for your project just like you would any other library. Very easy.

Seth, "DirectX vs OpenGL" does not compute. Only "Direct3D vs OpenGL". Lots of us use OpenGL for graphics, and DirectX for the rest.

--- End quote ---

Nowhere in my post did I say DirectX vs OpenGL.

I just wondered why he was useing DirectX. ;)

Vampyre_Dark:

--- Quote from: sethjackson on May 29, 2006, 08:35:23 pm ---DirectX != graphics;
--- End quote ---
Looks familiar.  :P

But it's true.

DirectX != Graphics. DirectX is a bunch of apis,  not one api. They are are seperate apis that serve their own functions, the only api that collides with OpenGL is Direct3D. Using OpenGL and the rest DirectX at the same time is very common.

I know you didn't say OpenGL vs DirectX. Just wanted to clear it up. ;)

Extrakun, for your linking order, put dxguid first, and then the rest of the libs as needed eg:
dxguid
dsound
dinput
d3d

sethjackson:

--- Quote from: Vampyre_Dark on May 29, 2006, 08:42:14 pm ---
--- Quote from: sethjackson on May 29, 2006, 08:35:23 pm ---DirectX != graphics;
--- End quote ---
Looks familiar.  :P

But it's true.

DirectX != Graphics. DirectX is a bunch of apis,  not one api. They are are seperate apis that serve their own functions, the only api that collides with OpenGL is Direct3D. Using OpenGL and the rest DirectX at the same time is very common.

--- End quote ---

Yup I stole Thomas's phrase (sort of). :lol: Just like you said DirectX is a bunch of API's that each has a seperate purpose. Anyways, I hope the OP gets his problem fixed.

kafoaai.elte:
Hi!

I have some problems using directX SDK with C::B. I downloaded this new version of C::B(8.2), and intalled it. When I try to create a new directX project I get this dialog to give the name of the project and so on. Everything is fine, until the last part when i should actually type in the directory of the directX SDK. I have the Microsoft DirectX SDK 2007 november installed in my Program Files, but when I choose the folder I get this message :
"The path you entered seems valid, but this wizzard can't locate directx files in it..."
wich is a bit strange because the files should be there. I dont know exactly wich files are needed, but the Include and Lib directories are there, and I just cant figure it out, whats wrong :S

Can I get any help here? :)

mandrav:

--- Quote from: kafoaai.elte on March 11, 2008, 11:47:10 pm ---I have the Microsoft DirectX SDK 2007 november installed in my Program Files, but when I choose the folder I get this message :
"The path you entered seems valid, but this wizzard can't locate directx files in it..."

--- End quote ---

Judging from the message you get, it's failing to find <dxdir>/include/d3d.h.

I haven't tested the dx wizard for quite some time now but, if there's a bug, you could fix it and provide a patch for others to test and eventually get committed to our repository.
Don't worry, it's easy:

[*] Click "File->New->Project"
[*] Right-click the "Direct/X project" icon
[*] Click on "Edit this script". You should be seeing the wizard script open in a new editor now :).
[*] Find the function named "OnLeave_DirectXPath"

Fix what needs fixing in there and save the file.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version