Lost Password?


  #1 (permalink)  
Old 01-28-2008, 11:58 PM
andnas_2000 andnas_2000 is offline
Newbie
 
Join Date: Jan 2008
Posts: 1
Rep Power: 0
andnas_2000 is on a distinguished road
Default C to managed C++

I have traditional C programs that were running on UNIX. These are required to be ported to Windows 2003 Server. Any pointers to the above are much appreciated.

Thought process was to re-compile these C programs in VS2003, make the necessary corrections, make an exe and use the windows scheduler to run these exe's. Is there a better/more appropriate way to do these ?

Should managed C++ be used ?
What problems are likely to occur in this approach ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 01-29-2008, 08:10 AM
v0id's Avatar   
v0id v0id is offline
Retired
 
Join Date: Apr 2007
Location: Denmark
Posts: 2,654
Last Blog:
CherryPy(thon)
Rep Power: 29
v0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of light
Send a message via MSN to v0id
Default

You can convert it to managed C++, if you want to - but you don't have to. I would keep it in C, like you say they already are. Of course you probably need to make some corrections, like you said yourself.

Managed C++ keeps track of the allocated memory, but if those programs have worked once, then they'll probably work now too (with the corrections)

The biggest problem you're going to get is probably the libraries. If your programs are using UNIX-libraries heavily, then you'll probably need to rewrite the whole program, and use Windows-libraries instead.
__________________
05-03-2007 - 11-13-2008
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-30-2008, 12:16 PM
WingedPanther's Avatar   
WingedPanther WingedPanther is online now
Super Moderator
 
Join Date: Jul 2006
Age: 35
Posts: 3,415
Last Blog:
wxWidgets is NOT code ...
Rep Power: 37
WingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to behold
Default

I agree. There's no reason to change the language. Adding to what v0id said, it may also use UNIX API etc that will require quite a bit of reworking. I would change as little as possible, though.

@Void - added rep
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Programming is a branch of mathematics.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Managed C++ calling VB .net dll function pranab73 Managed C++ 0 12-25-2007 01:19 PM
C++ v. Managed C++ Kaabi Managed C++ 2 11-28-2007 03:20 AM
Managed C++ vs C# IDE Crane Managed C++ 2 09-05-2006 12:16 PM
Learning Managed C++ NeedHelp Managed C++ 1 06-15-2006 05:06 PM
Convert between managed and unmanaged Crane Managed C++ 0 11-03-2005 04:46 PM


All times are GMT -5. The time now is 05:32 PM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 100%


Complete - Celebrate!

Ads