Solved

VC 6 to VC NET

Posted on 2004-03-24
6
254 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Find boost header files using gnu make (MinGW) on Win 7 11 95
Dialogbox API leak? 18 98
Eclipse IDE - Cannot copy/paste from console output 8 250
c++, dynamic object by json 1 53
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
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.

790 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