Click to See Complete Forum and Search --> : sdk for direct x


vikrant_Agnihotri
May 6th, 2006, 03:19 AM
sir,
i want to write direct x win32 applications using vc++ in visual studio .net 2003. i have downloaded the latest direct x sdk(april 2006) form microsoft.com. my main problem is that i can not determine which header files and library files should be used for a particular class. in the direct x documentation, i can't find any reference of libraries and header files to be used for a class.eg the class CSoundManager: i dont knw which library and header file to use..how can i determine that, and please tell me how to include library files and set paths in the win32 project in vs.net 2003 for direct x programming.

NoHero
May 6th, 2006, 07:28 AM
[ Moved Thread ]

NoHero
May 6th, 2006, 07:31 AM
DirectX is a bunch of COM classes, and CSoundManager class is not part of the DirectX API. It seems like a wrapper for some DirectX classes/calls. May you tell us where you have seen a classs CSoundManager?

If you want some good articles on DirectX take a look here (http://www.codeguru.com/Cpp/G-M/directx/).

vikrant_Agnihotri
May 6th, 2006, 01:28 PM
i am actually reading the book, "fundamentals of audio and video programming for games".
in the first chapter of the book, an example is given which makes use of CSoundManager and CSound classes.

Mitsukai
May 6th, 2006, 01:55 PM
for graphics i suggest OpenGL, for audio i suggest FMod for videos i dont realy know.

take a look, http://www.opengl.org/ , http://nehe.gamedev.net/ , http://www.fmod.org/

nolxev
May 6th, 2006, 03:25 PM
CSoundManager is a class developed by authors to manage the sound within the application while CSound is also written by authors to load and play sounds. They're not DirectX component, you have to write it.

masd
May 8th, 2006, 09:53 AM
Dont you have the CD for the book you mentioned? The classes you are looking for should be on the CD not from the directx sdk.

Most of the time, when you install directx sdk, the installer automatically set the paths in VS.Net 2003. If not, you can add manually through
Tools->Options->Projects->VC++ Directories
for both include and lib files.

You can add only <d3d9.h> or <d3dx9.h> in your code to work with sdk. Otherwise you can find specific include files for specific interfaces in the documentation.

Mike Harnad
May 8th, 2006, 02:20 PM
CSoundManager Sample Class (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/CSoundManager_Sample_Class.asp) . From MSDN:
The class is implemented in (SDK root)\samples\C++\Common\DXUTsound.cpp.