Solved

Make VC ++ 6.0 project work in win 7 and later

Posted on 2012-04-03
6
355 Views
Last Modified: 2012-04-04
I need to find out the least expensive way to have my projects (setup.exe and .exe) created with VC ++ 6.0 in win xp pro enviroment working well in Windows 7.. install and run 'm smoothly

thanks in advance,experts
0
Comment
Question by:khlauster
  • 2
  • 2
  • 2
6 Comments
 
LVL 24

Expert Comment

by:fridom
Comment Utility
You'd probably use an external builder for installations. I'm using InnoSetup  and am quite content with it.
0
 
LVL 9

Accepted Solution

by:
Orcbighter earned 160 total points
Comment Utility
The short answer is "Don't do it".
You need to convert the project. I am currently using VS 2008 which can convert VC6 projects via a wizard.
There will be minor problems because a lot of the C code is deprecated, but the compiler usually gives you the name of the replacement functions, eg strcpy -> strcpy_s.
You have to explicitly declare ints rather than allowing default typing, and so on.

VC6 is a decade-old compiler. Is there a reason you can't go to VS 2005 or VS 2008, or even VS2010?
0
 

Author Comment

by:khlauster
Comment Utility
Orcbighter!

Your projects built or converted with VS 2008 are running smoothly in Win xp, win 7, win server 8 and backwards compatible?

fridom!

Have you tried to run your VC++ 6.0 project setup.exe (built with InnoSetUp) in win 7 environment?
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 9

Assisted Solution

by:Orcbighter
Orcbighter earned 160 total points
Comment Utility
fridom??

No!
Just open up the VC6 project inside VS2008 and the wizard will do the conversion and provide a report if there was a problem (even if there wasn't).
It should not matter to InnoSetUp, an exe is an exe, it should just install your exe without trouble.
I think the only issue is whether your version of InnoSetUp supports Win7.
0
 

Author Comment

by:khlauster
Comment Utility
thank you, experts!
0
 
LVL 24

Expert Comment

by:fridom
Comment Utility
Well I'm using InnoSetup with an Access based solution. but what do you do with an installer. You use it to place the files at the proper place, do  the  registration as need is and do whatever is needed to integrate your program.

It does not matter with what the end-program was written. E.g you can still use VC 6 if you like (and indeed I bet a lot of people still are using Visual Basic 6 (the last "normal" Visual Basic", after that there just is VB.NET).  Of course one can migrate to a more actual development environment but this has nothing to do with an installation.

Installation means. Getting all the things installed at the proper place. And for that InnoSetup works great.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

728 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

12 Experts available now in Live!

Get 1:1 Help Now