Problem executing general C++ code samples

Hi,
I've installed Visual C++ Express Edition and PSDK and I'm able to build and execute simple Windows Forms Applications. But when I try to build the sample codes I've found at "http://msdn2.microsoft.com/en-us/library/ms236269.aspx" I always have the same problem, e.g. when I open the CPUID.sln from the CPUID sample program and try to choose "Properties" from the menu, I only get the error message "The operation could not be completed". When I try to build this sample following message appears: "Build: 0 succeeded or up-to-date, 0 failed, 1 skipped". Rebuilding and Debugging is also not possible. This happens with all the sample codes I've tested on this page.
What I'm doing wrong?
[707 byte] By [Atreju] at [2008-2-25]
# 1
Hi,
CPUID.sln should compile. Here's my advice;
1. Got to Solution Explorer.
2. Open Properties.
3. In the configuration window, change Platform from Itanium to Win32.
Visual C++ 2005 Express Edition does not support 64-bit application dev modes.
Hope this helps.
TakashiToyota at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Visual C++ 2005 Express Edition...
# 2
Hi,
I think I have to be here with more specific info. Many people seem to have this type of problem. Steps are as follows;
Step 1: Open Solution Explorer(project container).
Step 2: Select the solution, not a project.
Step 3: Select the Properties menu.
Step 4: In the open window, click the Configuration Properties item and then the Configuration.
Step 5: Look at the Platform column.
Step 6: If the column is set to Itanium, change it to Win32.
Step 7: Rebuild the project.
I hope that your CPUID.sln will be built beautifully.

TakashiToyota at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Visual C++ 2005 Express Edition...
# 3
Thank you very much !!!
Now everything works fine Smile
Atreju at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Visual C++ 2005 Express Edition...
# 4

I followed your instructions explicitly. The progam Scribble now compiles, but does not link. I get this error message:

LINK : fatal error LNK1181: cannot open input file 'user32.lib'

I am using VC++ Express.

Lengo at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Visual C++ 2005 Express Edition...
# 5
Hi,

Plz check the source codes first. CPUID code is just a C based sample.

Scribble is based on "user32.lib". Web have to tell pure C from

proprietary asset. Microsoft is the owner of the user32.lib code. Pure

C is not owned by the company. I understand those and still appreciate

the free downloadable VCEE.

Hope this helps.

TakashiToyota at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Visual C++ 2005 Express Edition...
# 6
This information (about switching the configuration to win32) should really be put more clearly on the sample download website. I just wasted a few days it seems.
ben at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Visual C++ 2005 Express Edition...