• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
matre

How to set visual studio 10.0 to work with directx

8 posts in this topic

Please help i get an error while compilling 1>sdk.cpp(6): fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory I am new to directx so please help. My program include files look like: #include <StdAfx.h> #include <windows.h> #include <windowsx.h> #include <d3d9.h> #include <d3dx9.h> And #include <d3dx9.h> is underlined with red curved line.Please help. Thanks in advance.
0

Share this post


Link to post
Share on other sites
You'll want to go to "Project" then "Properties" then "VC++ Directories". You'll want to add the "include" folder and the "lib" folder to the top of the "include directories" and "library directories" from the direct x SDK installation directory. The 'lib' folder you'll most likely be interested in will be the x86 subdirectory of the lib folder. In summary, you'll probably have these directories added:

include-->C:\Program Files (x86)\Microsoft DirectX SDK (March 2009)\Include
library-->C:\Program Files (x86)\Microsoft DirectX SDK (March 2009)\Lib\x86

or wherever they are on your hard drive.
2

Share this post


Link to post
Share on other sites
Oh, and I forgot you'll probably need to inform the compiler of which .lib files you want to link against. You do this at "project", "properties", "linker->input", and "additional dependencies". Then you'll need to mention all the .lib files you are using, probably D3dx9.lib and D3d9.lib
0

Share this post


Link to post
Share on other sites
Go to ProjectProperties -> Linker->Input->addional dependencies and include
d3dx9.lib

If you get to same error again then check directx path in Visual Studio.
Refer to this link for detailed information on setting up directx with vc++ -
http://www.uc-forum.com/forum/programming-beginners/61112-setting-up-vc-and-directx.html
0

Share this post


Link to post
Share on other sites
Quote:
Original post by Chetanhl
Go to ProjectProperties -> Linker->Input->addional dependencies and include
d3dx9.lib

If you get to same error again then check directx path in Visual Studio.
Refer to this link for detailed information on setting up directx with vc++ -
http://www.uc-forum.com/forum/programming-beginners/61112-setting-up-vc-and-directx.html


First, he obviously didn't have the paths set up correctly because his error was about not finding a header file. He would eventually need to follow your instructions after fixing the compile time error, but you jumped the gun a bit :). Second of all, that forum gives instructions for pre-2010 versions of Visual Studio. The method of setting up include/library directories has changed since 2008 was released. It now must be set up for every project in the project properties section instead of in the application options.
0

Share this post


Link to post
Share on other sites
Guys I had done everything you said,but now i get 3 new errors:
1>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11280): error C2061: syntax error : identifier '__RPC__out_xcount_part'
1>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): error C2059: syntax error : ')'
1>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\objidl.h(11281): fatal error C1903: unable to recover from previous error(s); stopping compilation
Please help.
0

Share this post


Link to post
Share on other sites
PS.
I found many tutorials on setting directx settings for visual studios 2008(or before)but none for visual c++ 2010 express so please take that in mind please.
Thank you.
0

Share this post


Link to post
Share on other sites
I was having problems with finding the d3dx9.lib and header file too. I realised I was putting the Include and Library/x86 folders into the wrong part of the settings (This is with Visual C++ Express Studio 2010)

Here is what you should do, then what you shouldn't:

Go into Project -> Properties -> VC++ Directories

In the 'Include Directories' section, select your Program Files\Microsoft DirectX SDK\Include directory
In the 'Library Directories' section, select your Program Files\Microsoft DirectX SDK\lib\x86

That should be ALL you have to do (in my case, anyway).

What you should NOT do, and what I think is the cause of many people having problems is:

(Do not!) Go into Project -> Properties -> C/C++ -> General
(Do not!) In the 'Additional Include Directories', put in your Include folder and Library folders.

Doing that will result in it asking for d3dx9.lib, which must be specified in the correct manner shown above.
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0