Solved

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

Posted on 2012-04-03
6
362 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 24

Expert Comment

by:fridom
ID: 37804884
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
ID: 37805042
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
ID: 37806555
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
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 
LVL 9

Assisted Solution

by:Orcbighter
Orcbighter earned 160 total points
ID: 37809378
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
ID: 37809486
thank you, experts!
0
 
LVL 24

Expert Comment

by:fridom
ID: 37809531
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need an intro to -- .Net SQL Authorization Manager 7 95
Adjust the position 3 70
troubleshoot a python script 8 76
Problem to Office 1 44
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
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.
This video teaches viewers about errors in exception handling.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

733 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