Update Program Microsoft C V5.1 to Visual C++ 6.0

This is a discussion on Update Program Microsoft C V5.1 to Visual C++ 6.0 within the C Programming forums, part of the General Programming Boards category; I have a program that interfaces with some hardware that was originally written in Microsoft C V5.1 and running under ...

  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    2

    Red face Update Program Microsoft C V5.1 to Visual C++ 6.0

    I have a program that interfaces with some hardware that was originally written in Microsoft C V5.1 and running under DOS 3.2. We now have new hardware that the same program will interface and have entirly new libraries for that. We would like to update it to Visual C++ 6.0. I have the original source on disk but not very much documentation or compilier. Can anyone suggest a plan of action on how to do this?

    Thanks

    Shane

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,746
    Let's see, you have
    - a new operating system, one which no longer allows direct access to the hardware
    - a new compiler, which cannot create programs for your old OS, even if you wanted to use your old OS
    - new hardware
    - new libraries for accessing your new hardware, which are only compatible with your new compiler.
    - no design / implementation comments for your existing code.

    Sounds to me like the existing code is well past it's "compile-by" date.

    You might be able to figure out what the code does, and somehow twist it into shape to fit the new envionment, but it will be a sub-optimal mess when you've finished.

    I'm going with complete re-write from scratch.

    Not only will you have a much better platform for further developments, but it will be a better match for you current (and near future) execution environments. It should also be more predictable as to how long it will take to complete.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User CompiledMonkey's Avatar
    Join Date
    Feb 2002
    Location
    Richmond, VA
    Posts
    438
    Originally posted by Salem
    I'm going with complete re-write from scratch.

    Not only will you have a much better platform for further developments, but it will be a better match for you current (and near future) execution environments. It should also be more predictable as to how long it will take to complete.
    I couldn't agree more.

  4. #4
    Registered User
    Join Date
    Oct 2003
    Posts
    2
    Thanks for your input guys.

    Another quick question. Is there a program that will parse through the code and construct some type of flow chart so that it would be easier to get a visual understanding on how exactly the code works?

  5. #5
    Registered User
    Join Date
    Oct 2003
    Posts
    6
    this my friend is the dream of everyone.

  6. #6
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,746
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Errors with including winsock 2 lib
    By gamingdl'er in forum C++ Programming
    Replies: 3
    Last Post: 12-05-2005, 08:13 PM
  2. Stupid compiler errors
    By ChrisEacrett in forum C++ Programming
    Replies: 9
    Last Post: 11-30-2003, 05:44 PM
  3. MS Visual C++ 6 wont include vector.h in a header file
    By bardsley99 in forum C++ Programming
    Replies: 9
    Last Post: 11-06-2003, 12:05 PM
  4. <list>
    By Unregistered in forum C++ Programming
    Replies: 9
    Last Post: 02-24-2002, 04:07 PM
  5. Microsoft Visual C++ 6.0 ---> dude, just read this.
    By Unregistered in forum C++ Programming
    Replies: 11
    Last Post: 10-03-2001, 10:08 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21