473,320 Members | 1,978 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Platform SDK for Visual Studio 2005

I am currently migrating my Visual C++ 6.0 applications to Visual Studio
2005. I am getting compiler errors involving the VS2005's platform SDK.
When I removed directory references to that SDK, and started using the
Microsoft Platform SDK for XP SP2, the errors disappeared, but I am now
getting numerous warnings (macro redefinitions) as follows:

StdAfx.cpp
WINVER not defined. Defaulting to 0x0502 (Windows Server 2003)
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\specstrings.h(334) : warning C4005: '__reserved' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sal.h(702) :
see previous definition of '__reserved'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\specstrings.h(341) : warning C4005: '__checkReturn' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sal.h(703) :
see previous definition of '__checkReturn'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\specstrings.h(344) : warning C4005: '__typefix' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sal.h(704) :
see previous definition of '__typefix'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\specstrings.h(349) : warning C4005: '__override' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sal.h(705) :
see previous definition of '__override'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\specstrings.h(350) : warning C4005: '__fallthrough' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sal.h(714) :
see previous definition of '__fallthrough'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\specstrings.h(351) : warning C4005: '__callback' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sal.h(706) :
see previous definition of '__callback'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\specstrings.h(352) : warning C4005: '__in' : macro redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sal.h(499) :
see previous definition of '__in'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\specstrings.h(353) : warning C4005: '__out' : macro redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sal.h(508) :
see previous definition of '__out'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\specstrings.h(354) : warning C4005: '__inout' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sal.h(527) :
see previous definition of '__inout'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\specstrings.h(356) : warning C4005: '__out_ecount' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sal.h(509) :
see previous definition of '__out_ecount'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\specstrings.h(357) : warning C4005: '__in_ecount' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sal.h(500) :
see previous definition of '__in_ecount'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\specstrings.h(358) : warning C4005: '__inout_ecount' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sal.h(528) :
see previous definition of '__inout_ecount'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\specstrings.h(359) : warning C4005: '__out_bcount' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sal.h(510) :
see previous definition of '__out_bcount'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\specstrings.h(360) : warning C4005: '__in_bcount' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sal.h(501) :
see previous definition of '__in_bcount'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\specstrings.h(361) : warning C4005: '__inout_bcount' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sal.h(529) :
see previous definition of '__inout_bcount'

How do I remove the warnings?

Marathoner
Jul 3 '07 #1
0 6637

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Lloyd Dupont | last post by:
I have downloaded & installed both VC++ express and the platform SDK. Now I want to compile some win32 source code but it doesn't, it don't find the headers. Now I guess I could add the...
3
by: Shapper | last post by:
Hello, I am starting 2 new projects to deliver in January 2006. I want to create them in Asp.Net 2.0 using Visual Studio 2005. All my clients web sites are Visual Studio 2003 projects in...
0
by: fiona | last post by:
Innovasys Ltd., a leader in help authoring and documentation tools, today announced the inclusion of a tailored version of the Innovasys HelpStudio help authoring product, HelpStudio Lite, in the...
8
by: WT | last post by:
Is it normal that Visual Studio sets the PreInit handler for a Page from the OnInit code ? No chance to fire it as OnPreInit is run befor OnInit. ??? CS
3
by: Edwin Smith | last post by:
I have a 2 form project in VS2005 that now hangs whenever I try to do anything with the second form. This seems to have started when I added some SQL tables from a Pervasive v.9 database using the...
12
by: Udhay | last post by:
I am new to vc++. Whether Visual Studio is a platform independent? Is there any chance of using my application created by vc in MAC or Linux. udhay
1
by: johnlim20088 | last post by:
Hi, Currently I have 6 web projects located in Visual Source Safe 6.0, as usual, everytime I will open solution file located in my local computer, connected to source safe, then check out/check in...
5
by: Michael Reichenbach | last post by:
After working with script languages, notepad(++) and co. and several other ide`s I found something which really improved my productivity (Visual Studio 2005). It`s imho better then dev-cpp... I...
28
by: =?Utf-8?B?R2Vvcmdl?= | last post by:
Hello everyone, I am developing C++ COM native code (unmanaged C++) using Visual Studio 2005. I do not take any new features of 64-bit platform, and currently my code runs fine on 32-bit...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.