Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > .NET 4 and Visual Studio 2010 > .NET 4 and Visual Studio 2010 General Discussions
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old October 13th, 2010, 04: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 04:35 PM. Reason: notice type-o
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 10:06 AM
Visual Studio 2010 Express Rushino BOOK: Beginning ASP.NET 4 : in C# and VB 5 March 27th, 2010 11: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



All times are GMT -4. The time now is 06:58 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.