Re: First time Visual C++ 2005 Express Edition help!



In article <A2084ABE-1F61-4119-9984-1BA6FDC3426D@xxxxxxxxxxxxx>,
=?Utf-8?B?RXJpYw==?= <Eric@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
I've programmed in C++ before and I know windows.h is a library, so
why doesn't it work? I am just started learning how to use Visual
C++ 2005 Express Edition from the book "Beginning Game Programming -
Second Edition." I tried the first example in the book, but Visual
C++ won't allow me to build because an error appears that says
'windows.h' is not a file or a directory.

Nitpick: <windows.h> is a header, not a library file. Regardless,
your issue is that Visual C++ 2005 Express Edition does not ship
with <windows.h>. There are some workarounds:

1) Download the latest Platform SDK from Microsoft. I tend to use
something like
http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en
.. Once you've done that, you'll need to update the include directories
for Visual Studio to allow it to search in the folders that have
<windows.h>. More information can be found at
http://www.codeproject.com/KB/applications/FreeVS2005Win32.aspx

2) Switch to Visual C++ 2008 Express Edition, which ships with
<windows.h> and the like. You may still have to install the DirectX
SDK.

Nathan Mates
--
<*> Nathan Mates - personal webpage http://www.visi.com/~nathan/
# Programmer at Pandemic Studios -- http://www.pandemicstudios.com/
# NOT speaking for Pandemic Studios. "Care not what the neighbors
# think. What are the facts, and to how many decimal places?" -R.A. Heinlein
.



Relevant Pages

  • Platform SDK for Visual Studio 2005
    ... I am currently migrating my Visual C++ 6.0 applications to Visual Studio ... I am getting compiler errors involving the VS2005's platform SDK. ... Defaulting to 0x0502 (Windows Server 2003) ...
    (microsoft.public.dotnet.languages.vc)
  • Re: GetExtendedTcpTable not available
    ... I'm running XP Pro SP2 using Visual Studio .net 2003 Visual C++ with ... Platform SDK Win2003 SP1. ... Program compiles and links fine when using a func like GetTcpTable, ... I have tried dynamically linking ...
    (microsoft.public.win32.programmer.networks)
  • Re: Visual C++ Upgrades
    ... Visual Studio" start menu item under the Platform SDK Visual Studio ... upgrade to a newer version of Visual C++ to get those as Carl mentioned. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: side-by_side error on Vista
    ... Platform SDK Jan 2006 ... I'm compiling an application on an XP machine and testing it on Vista. ... I tried just copying the newer DLLs to the app's startup directory, ... look in the directory where Visual Studio is installed for the file redist.txt which will tell you what files you are allowed to redistribute with your application. ...
    (microsoft.public.win32.programmer.ui)
  • Re: Mixed mode debugging is broken
    ... >> exactly the same as 2003- with the debugger set to auto it completely ... The worst part is there is no indication from Visual Studio ... >(tarekm at microsoft dot com) and I will arrange for a way for us to get ... >your scenario tested and any bugs resulting from it fixed before we ship ...
    (microsoft.public.vc.debugger)