Solved

Possible Conflict between C++6 and Studio 2005

Posted on 2006-11-13
5
245 Views
Last Modified: 2013-11-20
Hi guys,

On my laptop I have Visual Studio 2005, and have had it for a while now, no problems. Yesterday I decided to try install Visual C++ 6 (just C++, not studio) onto the laptop as well, as I wanted to compile some applications in old non .NET code. I thought if there are going to be any conflicts, it would tell me when I installed, but there were no issues.

I installed it fine. I opened a C++ Project, and compiled it, but when I try run the compiled code, Windows tells me that it has crashed, before it even loads up. When I compile the exact same code in Visual Studio 2005, it compiles and runs fine.

Any ideas on what could be wrong guys?


Cheers!
0
Comment
Question by:Cyber-Drugs
[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
5 Comments
 
LVL 48

Expert Comment

by:AlexFM
ID: 17936152
General rule us to install new version last. Try to uninstall both versions, install 6.0 and then 2005. They can work together without problems.
About program crash - you need to debug it, this can be related or not to the versions issue.
0
 
LVL 22

Expert Comment

by:mahesh1402
ID: 17937127
>>I try run the compiled code, Windows tells me that it has crashed before it even loads up.

As I understand this means you are saying that even you can't load your workspace with visual c++ 6 ? is it correct ??

have you created new VC6 workspace for your code ? how you are importing VS2005 workspace to oldone ? or you are manually adding src files to new workspace created under VC6 ?

-MAHESH

0
 
LVL 4

Author Comment

by:Cyber-Drugs
ID: 17937190
Hi guys,

Basically, I am trying to compile this:

http://www.codeproject.com/internet/CustomBrowser.asp

It was created for Version 6, and should compile no problem...

I compiled it in .NET 2005, and it compiled fine, the only problem is that with it being 2005, I would need to distribute additional files... Which I don't really want to do on my current project.
0
 
LVL 48

Accepted Solution

by:
AlexFM earned 500 total points
ID: 17937234
If you don't want to install VC++ 8.0 runtime on target computer, the only way is to build the program in VC++ 6.0.
For any C++ program built in VC++ 2005, you need to install this file in the target computer:
Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\vcredist_x86\vcredist_x86.exe

Other way is to create Setup Project and add VC++ runtime prerequisite to it.
0
 
LVL 4

Author Comment

by:Cyber-Drugs
ID: 17937292
Hey AlexFM,

I'll open another question in a minute for more information on creating one of these Setup Projects.

Cheers!
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Pressing cancel button with C# UI Automation 3 104
if loop in java 3 174
while loop over for loop 7 119
modThree challenge 4 155
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

734 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