Click to See Complete Forum and Search --> : DirectX setup problems


Bry4bry2000
July 10th, 2007, 11:06 PM
I'm new to using DirectX and am having trouble figuring out how to let Visual Studio 2005 recognize it is infact there and installed. I have already installed and made sure that the lib and header files are linked, but it still won't compile any of the sample source code that I was given and gives these errors:

include\winnt.h(222) : error C2146: syntax error : missing ';' before identifier 'PVOID64'

include\winnt.h(222) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

include\winnt.h(5940) : error C2146: syntax error : missing ';' before identifier 'Buffer'

include\winnt.h(5940) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

include\winnt.h(5940) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

The only thing I can think of is that I'm setting up the project incorrectly so to create a project I do the following:

File -> New Project
Win32 Project
And I have tried both just having the Windows application box checked and then tried checking the empty project box checked...neither helped and I get the same errors.

Any help would be much appreciated!

Mike Harnad
July 16th, 2007, 02:49 PM
Have you told Visual Studio where it can find the DirectX header files? If not, use the Tools/Options menu item. When the Options dialog appears, select Projects and Solutions. Then, use VC++ Directories to update the library and include file paths.