Compiling C Win32 code in VC2005 B2?

I try to compile my VC6 app, written in C for Win32 API, with the new VC2005 Beta 2. It tries to find windows.h and fails.

How can VC2005B2 (Express) be set to compile normal Win32 API apps? Where is the windows.h file now?

[225 byte] By [xanadu1963] at [2008-2-20]
# 1
You have to download the Platform SDK separately. Have a look at http://www.microsoft.com/msdownload/platformsdk/sdkupdate

I guess you will also have to add the include directories manually. Never tries Express myself, only betas of VSTS and Professional where a PSDK version is included...

SvenC at 2007-8-21 > top of Msdn Tech,Visual C++,Visual C++ General...
# 2

Hi gel!

cite="midf1b13b2c-5773-430d-a54b-a01f1c044301_WBRev2_@discussions.microsoft.com"

type="cite">This post has been edited either by the author or a

moderator in the Microsoft Forums: http://forums.microsoft.com

This article describe how to set up VC2005 B2 for use with the Platform

SDK:
href="../../lab.msdn.microsoft.com/express/visualc/usingpsdk/default.aspx">http://lab.msdn.microsoft.com/express/visualc/usingpsdk/default.aspx

The problem is that the described way is not working in Beta 2 due to a

(documented) bug...

So, the easiest way to use the PSDK with VC2005 Express is:

1. Create a directory "PlatformSDK" under "%ProgramFiles%\Microsoft

Visual Studio 8\VC"

2. Copy the "bin", "include" and "lib" directory from the

PSDK-installation into this directory.

Then you do not need to change any config file.

Newest PSDK-ISO is available at:

 href="../../www.microsoft.com/downloads/details.aspx@FamilyId=D8EECD75-1FC4-49E5-BC66-9DA2B03D9B92">http://www.microsoft.com/downloads/details.aspx?FamilyId=D8EECD75-1FC4-49E5-BC66-9DA2B03D9B92
-- 

Greetings

Jochen
My blog about Win32 and .NET

http://blog.kalmbachnet.de/

MVPUser at 2007-8-21 > top of Msdn Tech,Visual C++,Visual C++ General...
# 3
This article describe how to set up VC2005 B2 for use with the Platform SDK:

http://lab.msdn.microsoft.com/express/visualc/usingpsdk/default.aspx

gel at 2007-8-21 > top of Msdn Tech,Visual C++,Visual C++ General...
# 4

Hi xanadu1963!

cite="mid749e29c7-5591-47a7-a42c-a782bd0f3afd@discussions.microsoft.com"

type="cite">Thank you, that works perfectly.

So please mark my answer as answered...

-- 

Greetings

Jochen
My blog about Win32 and .NET

http://blog.kalmbachnet.de/

MVPUser at 2007-8-21 > top of Msdn Tech,Visual C++,Visual C++ General...
# 5
Thank you, that works perfectly.
xanadu1963 at 2007-8-21 > top of Msdn Tech,Visual C++,Visual C++ General...
# 6
It doesnt work for me, I even tried copying the files from those folders into my Bin Include and etc folders from the Platform install folders and still no go. So meh..../cry
c01dfire at 2007-8-21 > top of Msdn Tech,Visual C++,Visual C++ General...
# 7
I am just gonna use Dev C++, seems to be a nice IDE and it uses the GNU compiler. You can get it at www.bloodshed.net for free. Everyone at gamedev.net swears by it as far as free ones go.
c01dfire at 2007-8-21 > top of Msdn Tech,Visual C++,Visual C++ General...