Project creation issues
Hi,
I recent ly downloaded Vusal C++ Express. I have gone through the tutorials but I am really struggling with some simple user issues.
When I start a new poject I have been following the steps..1. File, New, then click Project.
2. In the Project Types area, click Win32, then Win32 Console Application.
3. Type in a name for the project (accepting default name and location for the solution).
4. Click Next.
5. Select the Precompiled Header and click Finish.
When doing this I get the following error message "Object does not support this property or method".
I have also tried to build a project with selecting Empy Project and not precomiled error. I have put in my source code and have built my project. My build fails for the following reason.
1>LINK : fatal error LNK1104: cannot open file 'user32.lib'
Also I am having difficulty finding the button to run/execute a program.
Any suggestions, would be much appreciated.
Thanks,
Allison
[1081 byte] By [
AllisonH] at [2007-12-25]
user32.lib is part of the Platform SDK. You need to have it installed and set up in the IDE to link against it. The following guide is the one which tells you how to set it up.
http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/default.aspx
The run/execute button is the one which looks like the play button on the toolbar. It is a green triangle facing right if you're not sure what that is. If you don't have that toolbar then try going to View->Toolbars->Standard. If that is shown then you will have the button there.
You can also start the program through the Debug pulldown menu. Debug->Start Debugging (F5). And as you may have guessed, you can also use the F5 key to start the program too.
For the problem with the precompiled headers, do you have IE7 installed. That is known to cause a few problems with the application wizards. If you do deselect the precopiled headers, it still creates stdafx.cpp and stdafx.h, it just changes the properties not to create precompiled headers out of them.