Click here to Skip to main content
6,596,602 members and growing! (21,049 online)
Email Password   helpLost your password?
Platforms, Frameworks & Libraries » Win32/64 SDK & OS » General     Intermediate

MakeXP

By Ernesto D.

A utility that allows you to easily add XP theme support to your applications
VC6Win2K, WinXP, MFC, Dev
Posted:19 Mar 2003
Updated:28 Mar 2003
Views:82,395
Bookmarked:37 times
Announcements
Loading...
 
Search    
Advanced Search
Add to IE Search
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
15 votes for this article.
Popularity: 5.03 Rating: 4.27 out of 5
1 vote, 6.7%
1

2

3
6 votes, 40.0%
4
8 votes, 53.3%
5

Introduction

MakeXP is a little utility that will automatically give your VC++6 Apps the Look & Feel of Windows XP. I got tired of having to make the manifest file, write the compile directive, etc. by hand every time i wanted my project to use the new windows XP looks, so I wrote this little app to do all the work for me. 

Once you give it a little information about your Project MakeXP Will:

  • Generate a custom manifest file, and put it on your project�s /res Directory
  • Modify your project�s .dsp file to include the manifest file.
  • Write the proper Compile directive to your project�s .rc2 file
  • Make backups of your .rc2 and .dsp files BEFORE modifying them, in case of trouble

Requirements 

Before you use MakeXP, Make sure your project meets the following conditions:

  • Made using Visual C++ 6 (might work on 5.0 or .NET, but i haven't tested it on it)
  • Has a valid .rc2 file (if you made the project with app wizard, then it does)
  • Works on both MFC and Win32 Applications, as long as they have a valid .rc2 file
  • A recent copy of the Microsoft Platform SDK update installed on the PC where you compile your applications
  • In your target applications (the ones you run MakeXP on), you need to link to ComCtl32.lib (in Project / settings /link) and call InitCommonControls early in your application (like in InitInstance )

Using the code

  1. Compile the application
  2. Run it
  3. Use the first "Find" button to select your project�s .dsp file, the rest of the fields will be filled automatically
  4. Verify that all values are correct and that your project is not open!
  5. Press the "MakeXP" button
  6. That's it! enjoy your XP looks! (assuming your DO have windows XP :) 

Note: If you have any trouble loading / using your project after you used MakeXP on it, just delete your .dsp / ,rc2 files and restore the backup files MakeXP made. These files will be named with a .BAK extension like: MyApp.dsp.BAK MyApp.rc2.BAK.

Points of Interest

Apart from being a useful utility, the code behind it illustrates the following points:

  • Reading, Parsing and Writting to / From Text files using fstream
  • Using some "advanced" CString functions like Find, ReverseFind, GetBufferSetLen, etc.
  • Basic file operations like CopyFile, DeleteFile etc.
  • Changing the colors used on a Dialog (on itself and it�s children)

History

  • 29 Mar 03 - updated requirements list. Some readers were having trouble getting the application to work

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Ernesto D.


Member

Occupation: Web Developer
Location: Mexico Mexico

Other popular Win32/64 SDK & OS articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 23 of 23 (Total in Forum: 23) (Refresh)FirstPrevNext
GeneralVS2008 - making an old MFC app have the new XP controls Pinmembertheory20068:06 27 May '09  
GeneralUsing with .NET PinmemberShraddhan19:35 15 Jun '05  
GeneralVisual C++ a must? Pinmemberspajjk17:28 21 Feb '04  
GeneralPlaying CAnimateCtrls Pinmemberajh9:08 8 Jul '03  
GeneralStill not work!! Pinmembergkcc13:07 23 Apr '03  
GeneralRe: Still not work!! Pinmemberytkaczyk12:54 30 Oct '03  
GeneralAnother question about DLLs Pinmember.:MART!N:.0:36 15 Apr '03  
GeneralRe: Another question about DLLs Pinmember.:MART!N:.0:59 15 Apr '03  
GeneralHow can I make the manifest work for a DLL? PinmemberJim McCurdy9:36 1 Apr '03  
GeneralRe: How can I make the manifest work for a DLL? Pinmembertheory20067:57 27 May '09  
Generalmanifest file - question PinmemberIrek Zielinski21:15 30 Mar '03  
GeneralRe: manifest file - question PinmemberErnesto Dallet22:15 30 Mar '03  
GeneralRe: manifest file - question PinsussJason Ricketts2:15 21 Nov '03  
GeneralMake XP Didn't Work PinmemberMirzallica14:21 22 Mar '03  
GeneralRe: Make XP Didn't Work PinmemberErnesto Dallet20:56 22 Mar '03  
GeneralRe: Make XP Didn't Work PinmemberMirzallica11:38 24 Mar '03  
GeneralRe: Make XP Didn't Work PinmemberErnesto Dallet15:58 27 Mar '03  
GeneralRe: Make XP Didn't Work PinmemberTerry Denham13:01 31 Mar '03  
GeneralRe: Make XP Didn't Work Pinmemberytkaczyk12:56 30 Oct '03  
Generalthe manifest file PinsussBigJones11:27 21 Mar '03  
GeneralRe: the manifest file PinmemberErnesto Dallet15:19 21 Mar '03  
GeneralGood Idea PinmemberRyan Binns2:06 21 Mar '03  
GeneralRe: Good Idea PinmemberRancidCrabtree7:26 1 Apr '03  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 28 Mar 2003
Editor: Chris Maunder
Copyright 2003 by Ernesto D.
Everything else Copyright © CodeProject, 1999-2009
Web18 | Advertise on the Code Project