Solved

Upgrading a VS6 MFC project to VS2008

Posted on 2008-10-17
3
1,158 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
installing and using WTP plugin eclipse MARS 3 100
Window placement 17 77
Execute multiple curl cmds with sleep and send output to file 10 89
Eclipse Neon and jdk 1.8.0 11 139
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…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

863 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now