Question about project setup...

I'm using visual c++ and DirectX9. First thing is that when I installed the dx sdk it didn't give me a project wizard for directx so I'm left using samples :(

I want to create a mdi project that uses directx9 in a child window. Does anyone have a blank project or this? or does anyone know how to or where to find to set up the project environment settings to successfully use a directx program.

If I create my own windows project and try to incorperate the example code from the help files (even in just the basic device and window creation) I get compiler errors like mad.

thanks for any help,

Devin

[613 byte] By [Devin] at [2008-1-23]
# 1
Devin wrote:
I'm using visual c++ and DirectX9. First thing is that when I installed the dx sdk it didn't give me a project wizard for directx so I'm left using samples :(

That is how it's supposed to be. I forget exactly which release (Summer 2003 or 3004?), but they were intentionally removed by the DX team on the basis that no one found them that useful.

Instead we have the "Install Project" feature in the Sample Browser (there should be a link next to each sample) and a "EmptyProject" sample that (when you select "Install Project") will give you a simple, working, example.

I personally prefer this system to the old project wizards Smile

Devin wrote:
I want to create a mdi project that uses directx9 in a child window. Does anyone have a blank project or this?

I'm not aware of any such code/template myself, but maybe a google search will help.

As an idea, I think the DXTex SDK tool actually has the source code included with the SDK - and that is an MDI based D3D application. Provided you can still get to the source code you might be able to sort something out!

Devin wrote:
or does anyone know how to or where to find to set up the project environment settings to successfully use a directx program.

I always use the aforementioned "EmptyProject" or another suitable sample if I need to check the project/solution settings and/or which libs/options I need to setup.

Devin wrote:
I get compiler errors like mad.

Posting back here with some of the errors, information on what you're trying to do and what platform/software you're using might be a good idea...

hth
Jack

JHoxley at 2007-9-9 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: DirectX 101...
# 2
Wow, thanks Jack, that gives me a big direction help. Can't seem to find the DXTex project or a way to find it. Can you point me in the right direction?

The problem I seem to have in the project setup is that even if I look at the empty project and copy over the settings I still get errors. I can't remember which so for now I'll not ask for help on that.

I did find the DXTex and it is what I was looking for. Thanks a bunch!

-Devin

Devin at 2007-9-9 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: DirectX 101...
# 3
When compiling another of the directx util projects I got the following error:

DXViewer fatal error C1083: Cannot open source file: '\program files\microsoft directx 9.0 sdk (august 2005)\utilities\samples\cpp\common\dxstdafx.cpp': No such file or directory

Anybody know why?

-thanks Devin

Devin at 2007-9-9 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: DirectX 101...