Solved

VC 6 to VC NET

Posted on 2004-03-24
6
253 Views
Last Modified: 2010-04-01
Hi

I have a VC 6 project that uses some VC 6 dlls.

I want to know if it is possible to compile my project under VC NET without modify ANY part of the code or dlls.

If it is possible, I also want to know if my users will need the NET framework installed or if the app will run just as another  VC 6 app.

Thanks
0
Comment
Question by:rettiseert
6 Comments
 
LVL 2

Expert Comment

by:johnlcox
ID: 10668633
You should be able to open up your VC 6 project files with VC.NET and it will convert to the new VC.NET project file type.  Then you should be able to compile it just as you do with VC 6.  Your users will not need the .NET Framework unless you use any of the .NET managed C++ code.
0
 
LVL 14

Accepted Solution

by:
wayside earned 20 total points
ID: 10669797
We had problems with streams when we switched to VC++.Net . You might have to change some code to get these to work.

Microsoft finally changed their header file names to get rid of the .h for STL, i.e.

#include <strstream> instead of

#include <strstream.h>

Also there are new versions of the C runtime (msvcr70.dll etc) and the mfc dll's (mfc71.dll  et al). If you are dynamically linking these, you will need to redistribute them because they most likely won't be present on your user's machines. If you statically link them you should be OK.

0
 
LVL 5

Expert Comment

by:info_expert
ID: 10670426
Hi,

Its is a general practice that if we move our vc 6.0 project to vc.NET , then we have to use the dlls with changed names, and alos if we add a little bit managed code then it must be essential to install .Net on the end user machines.
So you better leave the project as it is , or be prepared to install .Net to get it running.

Regards.
0
 
LVL 13

Author Comment

by:rettiseert
ID: 10732982
Hi to all, I can't split 20 points so I'll give them to the first
0
 
LVL 5

Expert Comment

by:info_expert
ID: 10742275
You better give 20 points each. d;-)
0

Featured Post

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
maze travler 6 55
C Language combined operators 28 109
VS2015 compilation and missing DLLs 9 147
C++ question 3 65
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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.

777 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