Problems with SDK August 2006
I've recently installed the DirectX SDK (August 2006) on my Windows XP Professional machine. There was no previously installed SDK version. After doing that, I installed the Visual C# 2005 Express Edition to start coding some DirectX.
I'm following some examples from the book "Managed DirectX 9 - Graphics and Game Programming", Tom Miller, 2003. (ISBN: 0-672-32596-9)
I encounter problems at the very first example!
'Microsoft.DirectX.Direct3D.PresentParameters' does not contain a definition for 'Windowed'
The "faulty" block of code looks like this:
PresentParameters presentParams = new PresentParameters();
presentParams.Windowed = true;
I have also noticed that there are many different versions of the managed dll files, and that they are spread out all over my hdd. The Microsoft.DirectX.DLL in C:\Program\Microsoft DirectX SDK (August 2006)\Developer Runtime\x86\DirectX for Managed Code is version 1.0.2902.0, but there is one at 2.0.0.0 in another path, C:\WINDOWS\Microsoft.NET\DirectX for Managed Code\2.0.0.0_x86.
I'm getting more confused by the minute. Any ideas on why everything I try must fail?
Really thankful for a little piece of advice.
[1230 byte] By [
uppe] at [2007-12-25]
The book you are reading was written in 2003 so some of the information is going to be outdated.
With each new SDK release you'll find that occasionally things that worked before installing the new SDK now no longer work. In your situation it's simply a syntax issue. The boolean for the present parameters windowed property is now "IsWindowed".
My recommendation in regards to the various DLLs is to reference only those that you know are the latest version. The others remain due to inefficient cleanup and as a result of libraries added during other .NET related software installations. As you get used to programming and working with DirectX you will find that you will be able to answer most of your questions yourself. Good luck with your efforts.