Solved

Upgrading a VS6 MFC project to VS2008

Posted on 2008-10-17
3
1,199 Views
Last Modified: 2013-12-14
Hello

I have a VS6 MFC project that i wrote some time ago.
I would like to upgrade it to VS2008 MFC to take advantage of the new visual effects.

When I open my old project in VS2008 I get a prompt to convert the project to the new version.
Afterward I convert it I can build the project but it looks old and ugly like it did before.

When i create a new VS2008 MFC dialog project and add a few GUI elements to the dialog and compile it. it has that new shinny look and feel. (the buttons are rounded, there is a gradient on the drop down boxes, ect)

How to I convert my old VS6 MFC project to VS2008 MFC and take advantage of the new visual effects?

0
Comment
Question by:Chipkin_com
3 Comments
 
LVL 39

Expert Comment

by:itsmeandnobodyelse
ID: 22747848
>>>> How to I convert my old VS6 MFC project to VS2008 MFC and take advantage of the new visual effects?
As far as I know you would have to throw away your old .rc file and create a new one - same name - using the new resource editor.

I installed VS2008 myself yesterday and I read in the 'What is new' topic that when converting from old MFC the new features were *not* available by design. If you are lucky it is only a option which could be switched on/off somewhere in the properties but it is my guess that they enhanced the new resource file syntax both by including more and different standard includes and by enhanced options. If I was right there is another - maybe quicker - way for converting. Create a new resource file with a new project and add one sample of each control you used in your old form. Then, open both resource files using a text editor (you even could use the Visual Studio for that) and compare the differences, If I was right you have a much different head region and the options added to each control were different as well.


0
 
LVL 31

Accepted Solution

by:
Zoppo earned 250 total points
ID: 22755677
Hi Chipkin_com,

takse a look at these links:
http://www.codeguru.com/cpp/controls/controls/article.php/c5227
http://msdn.microsoft.com/en-us/library/ms997646.aspx

To improve the MFC GUI you could even take a look at the new MFC Feature pack, but this could mean rewriting a lot of GUI-related code since this feature pack implements modern GUI elements in new classes with new functionality:
http://www.microsoft.com/downloads/details.aspx?FamilyId=D466226B-8DAB-445F-A7B4-448B326C48E7&displaylang=en
http://www.codeguru.com/cpp/cpp/cpp_mfc/tutorials/article.php/c14929

Hope that helps,

ZOPPO
0
 

Author Closing Comment

by:Chipkin_com
ID: 31507353
Thanks!
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Eclipse. How to move up/down source folders 4 104
isEverywhere  challenge 19 85
Annoying "thing" blocks my view 4 131
Detect file exist or not 3 199
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
In this post we will learn different types of Android Layout and some basics of an Android App.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question