> Yes, I have downloaded the Windows Platform SDK (R2) and installed it. I
> saw
> that you need the user32.dll and/or user32.lib files. Thing is, how do
> you
> link a library? An include?
You should do like below steps:
Update the Visual C++ directories in the Projects and Solutions section in the Options dialog box.
Add the paths to the appropriate subsection:
Executable files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin
Include files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include
Library files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib
Note: Alternatively, you can update the Visual C++ Directories by modifying the VCProjectEngine.dll.express.config file located in the \vc\vcpackages subdirectory of the Visual C++ Express install location. Please make sure that you also delete the file "vccomponents.dat" located in the "%USERPROFILE%\Local Settings\Application Data\Microsoft\VCExpress\8.0" if it exists before restarting Visual C++ Express Edition.
Update the corewin_express.vsprops file.
One more step is needed to make the Win32 template work in Visual C++ Express. You need to edit the corewin_express.vsprops file (found in C:\Program Files\Microsoft Visual Studio 8\VC\VCProjectDefaults) and
Change the string that reads:
AdditionalDependencies="kernel32.lib" to
AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib"
Generate and build a Win32 application to test your paths.
In Visual C++ Express, the Win32 Windows Application type is disabled in the Win32 Application Wizard. To enable that type, you need to edit the file AppSettings.htm file located in the folder “%ProgramFiles%\Microsoft Visual Studio 8\VC\VCWizards\AppWiz\Generic\Application\html\1033\".
In a text editor comment out lines 441 - 444 by putting a // in front of them as shown here:
// WIN_APP.disabled = true;
// WIN_APP_LABEL.disabled = true;
// DLL_APP.disabled = true;
// DLL_APP_LABEL.disabled = true;
Save and close the file and open Visual C++ Express.
From the File menu, click New Project. In the New Project dialog box, expand the Visual C++ node in the Product Types tree and then click Win32. Click on the Win32 Console Application template and then give your project a name and click OK. In the Win32 Application Wizard dialog box, make sure that Windows application is selected as the Application type and the ATL is not selected. Click the Finish button to generate the project.
As a final step, test your project by clicking the Start button in the IDE or by pressing F5. Your Win32 application should build and run.
--------------------------------------------------------------------------------
"ulillillia" <ulillillia@discussions.microsoft.com> wrote in message
news:AD08EA94-055E-459E-9DA8-61A8DBBBFB04@microsoft.com...
> Yes, I have downloaded the Windows Platform SDK (R2) and installed it. I
> saw
> that you need the user32.dll and/or user32.lib files. Thing is, how do
> you
> link a library? An include?
You are using the Express Edition?
If so, choose Project->Properties from the menu. Click on the '+' to expand
the 'Configuration Properties', then open up the 'Linker' options the same
way, click on the 'Input' category, then in the edit box labeled 'Additional
Depencies' type
user32.lib
Regards,
Will
ulillillia - 04 Dec 2006 01:51 GMT
I'm very confused with the first part - setting the directories. I don't see
any of the "C:\Program Files\..." stuff, but other things that makes me very
confused. As an example, I see this in that file you mentioned:
Include="$(VCInstallDir)include;$(VCInstallDir)PlatformSDK\include;$(FrameworkSDKDir)include"
I don't get what any of this means and as a result, I have no idea what I
need to do. I first used the options dialog stuff, but I saw this same thing
without the familiar "C:\Program Files\..." stuff. What do I do and where do
I put the additions I need. I don't see any "executable files" listed in
that file. Given the top line, it appears as if this is an XML file, the
first time I've actually seen such a file (which seems a lot like HTML only
with odd symbols and formatting (the dollar sign)).
I haven't done anything else past this first part since I feel as if I need
to do them in the order you've given.
Thanks so far though for the assistance, but I'm just very confused on the
first part I need to do.

Signature
Some programming:
void bluewater() {while(game_runs == 1)
{if fox.position == in_blue_water) {fox.health -= 1;}
else {fox.wants_to_get_wet = true;} wait_frames(1);}}
ulillillia - 05 Dec 2006 04:26 GMT
Okay, so I tried just copying and pasting the URL using the dialog through
the options menu instead of being confused with the weird formatting. That
appeared to have worked properly and I began following the other directions
you had and it all works. Thank you so much for the assistance and I can now
begin learning Windows programming and eventually get into game programming
when my ability gets good enough.

Signature
Some programming:
void bluewater() {while(game_runs == 1)
{if fox.position == in_blue_water) {fox.health -= 1;}
else {fox.wants_to_get_wet = true;} wait_frames(1);}}