Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 4 and Visual Studio 2010 > .NET 4 and Visual Studio 2010 General Discussions
| Search | Today's Posts | Mark Forums Read
.NET 4 and Visual Studio 2010 General Discussions For discussing anything about .NET 4, WPF, WCF, the rest of the .NET 4 Framework, and Visual Studio 2010 that isn't about a specific Wrox book. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET 4 and Visual Studio 2010 General Discussions section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 13th, 2010, 03:29 PM
Registered User
 
Join Date: Oct 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can Visual Studio 2010 Professional create a Windows XP executable?

I need to target Windows XP OS for a manufacturing company. I usually use VS2003 C++ and MFC for this older OS but I prefer to use VS2010 for all my Windows’ Apps if possible and I did solve two initial problems with VS2010.

With the new project wizard I generated a simple (unmanaged, no MFC, no forms) C++ “Hello World” Win32 Project. I did not want Unicode so I edited the Project properties-dialog-box by changing Character Set from Unicode to Multi-byte. Problem#2 was error messages that dev DLL's not found. This problem was solved by changing the Code Generation – Runtime Libraries from Multi-threaded DLL to just Multi-threaded (no need to distribute dev DLL’s with a small program).

My first attempt to target Windows XP with VS2010 was by tying to edit targetver.h (this header was created by the wizard):
I tried adding
#define _WIN32_WINNT _WIN32_WINNT_WINXP however I still got the same Kernal32 DLL runtime error message on a native XP PC.

Just as a test, I used the older VS2003 to create an unmanaged C++ simple “Hello World” executable (created on the same PC I have VS2010 installed), it ran perfectly on Windows 7, Vista and ran perfectly on the XP PC also – by using VS2003 instead of VS2010.

I will be grateful if someone could answer the question below, and if yes give me some suggestions on how I might get my simple unmanaged C++ “Hello World” program to run on XP OS that was generated by VS2010:

Can VS2010 Professional Full Version, create a Windows XP executable???

Last edited by CoderTim; October 13th, 2010 at 03:35 PM.. Reason: notice type-o




Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Studio 2010 jack_hilary BOOK: Beginning ASP.NET 4 : in C# and VB 4 April 28th, 2010 09:06 AM
Visual Studio 2010 Express Rushino BOOK: Beginning ASP.NET 4 : in C# and VB 5 March 27th, 2010 10:18 AM
Visual Studio 2010 in Focus at Great Indian Developer Summit 2010 shaguf5575 ASP.NET 1.x and 2.0 Application Design 0 February 24th, 2010 07:03 AM
Visual Studio 2010 in Focus at Great Indian Developer Summit 2010 shaguf5575 ASP.NET 1.x and 2.0 Application Design 0 February 24th, 2010 07:02 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.