Our website uses cookies to enhance your browsing experience.
Accept
to the top
close form

Fill out the form in 2 simple steps below:

Your contact information:

Step 1
Congratulations! This is your promo code!

Desired license type:

Step 2
Team license
Enterprise license
** By clicking this button you agree to our Privacy Policy statement
close form
Request our prices
New License
License Renewal
--Select currency--
USD
EUR
* By clicking this button you agree to our Privacy Policy statement

close form
Free PVS‑Studio license for Microsoft MVP specialists
* By clicking this button you agree to our Privacy Policy statement

close form
To get the licence for your open-source project, please fill out this form
* By clicking this button you agree to our Privacy Policy statement

close form
I am interested to try it on the platforms:
* By clicking this button you agree to our Privacy Policy statement

close form
check circle
Message submitted.

Your message has been sent. We will email you at


If you haven't received our response, please do the following:
check your Spam/Junk folder and click the "Not Spam" button for our message.
This way, you won't miss messages from our team in the future.

>
>
How to compile a C++ application in Vis…

How to compile a C++ application in Visual Studio 2010 so that it could work in Windows 2000?

Oct 30 2010
Author:

Applications built with the help of the new version of the Visual C++ compiler included into the Visual Studio 2010 development environment cannot be executed anymore in operating systems of the Windows family lower than Windows XP SP2. This issue is caused by including API calls of the EncodePointer function into the runtime-library of Visual C++ - this function appears only in the second service pack for Windows XP.

To build an application that could work in Windows 2000 from the Visual Studio 2010 environment, you may use the new Visual C++ 2010 functionality - multi-targeting. This kind of build allows to compile applications from VS2010 using the compiler, linker and libraries from previous Visual C++ versions if they are present in the system. You can choose the target platform in the project settings (General/Platform Toolset). The paths to the tools and libraries needed for building the application on the target platform are defined in props-files situated in the folder %ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\Platforms\<Platforms>\PlatformToolsets. To learn more about this, visit the blog of Visual C++ developers.

Note also that using multi-targeting allows you not to bother with supporting several versions of project files when the program you are developing needs support in various Visual C++ versions.

References

Popular related articles


Comments (0)

Next comments next comments
close comment form