Solved

VC 6 to VC NET

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

760 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

20 Experts available now in Live!

Get 1:1 Help Now