colorvalue in progressive mesh sample

Hi, new to DirectX in C#, not in C++.
In the August 2005 DirectX sdk update, there is a sample in C# called "Progressive Mesh". When I compile this sample, I get 36 errors, all of which are type or namespace missing errors. Here's an example. 'ColorValue', which is supposed to be of theMicrosoft.DirectX.Direct3D namespace simple does not appear to be there. MSDN says it's part of the namespace, auto-complete does not. What is going on? I know this is probably a newb question, but hey, I'm a newb :)
[541 byte] By [kshawol] at [2008-3-3]
# 1
Have you added the right DLL files to the project? Right click references in the Solution explorer and add the DLLs that contains the namespaces. Directx.DLL and so on. Can't remember the names by heart and I am in Linux right now, sorry..

- ?? -

NoteMe at 2007-9-9 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: General...
# 2

Assembly Microsoft.DirectX.Direct3D

C:\WINDOWS\assembly\GAC\Microsoft.DirectX.Direct3D\1.0.900.0__31bf3856ad364e35\Microsoft.DirectX.Direct3D.dll
It's there already.

These are all the references.
Microsoft.DirectX
Microsoft.DirectX.Direct3D
Microsoft.DirectX.Direct3DX
mscorelib
System
System.Drawing
System.Windows.Forms

The file is dxmutgui.cs
Here are the namespace uses.

using System;

using System.Collections;

using Microsoft.DirectX;

using Microsoft.DirectX.Direct3D;

It declares a namespace:

namespace Microsoft.Samples.DirectX.UtilityToolkit

this is the structure where I get my first error.

public struct BlendColor

{

public ColorValue[] States; // Modulate colors for all possible control states

It can't find ColorValue.
All the errors occur within dxmutgui.cs or dxmutmisc.cs.

ColorValue also does not appear in the object browser.

kshawol at 2007-9-9 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: General...
# 3
I forgot to mention..I'm using Visual Studio 2005 beta
kshawol at 2007-9-9 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: General...
# 4
Delete the DirectX references, then add them back in ensuring you get the latest version number for all of them.

There is something screwy in the solution files or in the way VS2005 opens them.

TheZMan at 2007-9-9 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: General...
# 5
That did it, it compiles and runs, thankyou.
Still getting warnings..
Warning 1 The file 'Common\AssemblyInfo.cs' could not be added to the project. Cannot add a link to the file C:\Documents and Settings\Chameleon\My Documents\Visual Studio 2005\Projects\Progressive Mesh\Common\AssemblyInfo.cs. This file is within the project directory tree.
Any idea how to fix this?
kshawol at 2007-9-9 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: General...
# 6
I think if you start with the _2003 projects and convert them into VS2005 this issue doesn't happen. The _2005.sln files are a bit broken. Should be fixed with Oct SDK though which is imminent.
TheZMan at 2007-9-9 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: General...
# 7
Right again! It worked flawlessly. Where do you get your info? The zbuffer site?
Thankyou very much.
kshawol at 2007-9-9 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: General...
# 8
Trial and error.... (actually I think David Weller pointed out the conversion one to me after I complained about having to fix up the projects every time - I forget the changes but it is possible to fix up the 2005 projects by hand.)
TheZMan at 2007-9-9 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: General...
# 9
Well thanks, I've been trying to figure this out for awhile. You saved me a bunch of time. :)
kshawol at 2007-9-9 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: General...
# 10
Yes, this appears to be a problem with updating Visual Studio 2005 References in general. Anytime I update a Class Library and copy it to another project, I have to delete its Reference in the new Project and then re-add it, or it acts like I'm still using the old one somehow... even though it no longer exists. I wonder where it even gets the old code from.
SoopahMan at 2007-9-9 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: General...