Closed Thread
Results 1 to 3 of 3

Thread: C to managed C++

  1. #1
    andnas_2000 is offline Newbie
    Join Date
    Jan 2008
    Posts
    1
    Rep Power
    0

    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 ?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    v0id is offline Retired
    Join Date
    Apr 2007
    Posts
    2,937
    Blog Entries
    3
    Rep Power
    42
    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.

  4. #3
    Join Date
    Jul 2006
    Posts
    16,486
    Blog Entries
    75
    Rep Power
    143
    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
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Intermediate Tutorial on Delegates in managed C++
    By mnirahd in forum Tutorials
    Replies: 0
    Last Post: 11-21-2010, 08:23 AM
  2. C++ v. Managed C++
    By Kaabi in forum Managed C++
    Replies: 1
    Last Post: 11-07-2007, 06:48 PM
  3. Managed C++ vs C# IDE
    By Crane in forum Managed C++
    Replies: 2
    Last Post: 09-05-2006, 09:16 AM
  4. Arrays in NET 2.0 or CLI Managed C++
    By Void in forum Managed C++
    Replies: 1
    Last Post: 07-18-2006, 05:57 PM
  5. Learning Managed C++
    By NeedHelp in forum Managed C++
    Replies: 1
    Last Post: 06-15-2006, 02:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts