Solved

Possible Conflict between C++6 and Studio 2005

Posted on 2006-11-13
5
234 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
  • 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

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
repeatEnd java challenge 42 84
Smart Camera scanning and reading information 3 100
noX challenge 17 93
JQuery serialize and unserialize 8 52
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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 tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

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

23 Experts available now in Live!

Get 1:1 Help Now