473,883 Members | 1,626 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\spe cstrings.h(334) : warning C4005: '__reserved' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sa l.h(702) :
see previous definition of '__reserved'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\spe cstrings.h(341) : warning C4005: '__checkReturn' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sa l.h(703) :
see previous definition of '__checkReturn'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\spe cstrings.h(344) : warning C4005: '__typefix' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sa l.h(704) :
see previous definition of '__typefix'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\spe cstrings.h(349) : warning C4005: '__override' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sa l.h(705) :
see previous definition of '__override'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\spe cstrings.h(350) : warning C4005: '__fallthrough' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sa l.h(714) :
see previous definition of '__fallthrough'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\spe cstrings.h(351) : warning C4005: '__callback' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sa l.h(706) :
see previous definition of '__callback'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\spe cstrings.h(352) : warning C4005: '__in' : macro redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sa l.h(499) :
see previous definition of '__in'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\spe cstrings.h(353) : warning C4005: '__out' : macro redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sa l.h(508) :
see previous definition of '__out'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\spe cstrings.h(354) : warning C4005: '__inout' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sa l.h(527) :
see previous definition of '__inout'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\spe cstrings.h(356) : warning C4005: '__out_ecount' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sa l.h(509) :
see previous definition of '__out_ecount'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\spe cstrings.h(357) : warning C4005: '__in_ecount' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sa l.h(500) :
see previous definition of '__in_ecount'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\spe cstrings.h(358) : warning C4005: '__inout_ecount ' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sa l.h(528) :
see previous definition of '__inout_ecount '
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\spe cstrings.h(359) : warning C4005: '__out_bcount' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sa l.h(510) :
see previous definition of '__out_bcount'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\spe cstrings.h(360) : warning C4005: '__in_bcount' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sa l.h(501) :
see previous definition of '__in_bcount'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\spe cstrings.h(361) : warning C4005: '__inout_bcount ' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sa l.h(529) :
see previous definition of '__inout_bcount '

How do I remove the warnings?

Marathoner
Jul 3 '07 #1
0 6695

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

Similar topics

2
1404
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 PlatformSDK's lib & include directories in my project. But the problem is, unfortunately everything is intsalled on the F: drive and I would like to share my project with a friend. And I would like him to just have to hit 'F5' and run the project. So I...
3
2322
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 Asp.Net 1.1 / VB.NET. These web sites use Access Databases and NOT Microsoft SQL 2000. In the future I will need to make a few changes now and then to this web sites.
0
3358
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 Microsoft Visual Studio 2005 Software Development Kit. By providing a full help authoring environment within the Visual Studio 2005 SDK, Innovasys is providing developers building components and products that integrate with Visual Studio 2005 a...
8
6282
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
6077
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 Pervasive ODBC driver. The devenv.exe process hangs and will not respond with about 50% cpu usage and about 100 megs of memory used. I am running it on an Athlon 64 bit dual core with 32 bit Windows XP pro. I have 2 megs of memory so I don't...
12
5470
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
3608
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 some files and work on it. Let say, I want add new page to web project named websiteOrder.sln, i will open websiteOrder.sln in my local computer, connected to websiteOrder.sln located in Visual Source Safe 6.0(source safe located in another...
5
10100
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 worked with C# and VB.net a bit and it was really easy because of the debugger, the interactive debugger, intellisense, command completer and so on. I would like to stick to this ide. But I thought about to invest in C++ instant of C# / VB.net...
28
2758
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 platform (e.g. Windows XP SP2). Now I am researching how to build my code for 64-bit platform (e.g. Windows 2003 Server 64-bit R2)? Any options I need to specify in Visual Studio 2005? The best solution to me is to make a single build for both 32-bit...
0
9943
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11151
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10750
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10858
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9577
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7134
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5996
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4619
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3237
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.