g++ -> vc.net

C

Cheryl

Hi! I am a newbie to C++. Now, I have some old C++ code on UNIX and I
would like to reuse the codes on PC. Are there any solution to this? If I
have to rewrite them on .NET, can I simply copy and paste to VC.net?
 
V

Victor Bazarov

Cheryl said:
Hi! I am a newbie to C++. Now, I have some old C++ code on UNIX and I
would like to reuse the codes on PC. Are there any solution to this? If I
have to rewrite them on .NET, can I simply copy and paste to VC.net?

I am not sure how you're going to copy and paste across the operating
system boundary, but the solution is probably easier: your C++ code is
probably saved on your hard drive as files, so why not just copy the
files to your PC and treat them as PC files. Set up a project in your
VC++ and add all the files to it... How to do it, ask in the
microsoft.public.vc.ide_general newsgroup.
 
J

John Harrison

Cheryl said:
Hi! I am a newbie to C++. Now, I have some old C++ code on UNIX and I
would like to reuse the codes on PC. Are there any solution to this? If I
have to rewrite them on .NET, can I simply copy and paste to VC.net?

It all depends on how the original code was written. If it was written to be
portable then you might not have any problems, if it wasn't then you could
have big problems. The only way to find out is to try it. If you run into
problems you can always post the code here.

john
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,161
Messages
2,570,891
Members
47,423
Latest member
henerygril

Latest Threads

Top