Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 7 of 7

Thread: Like to convert old dos based app to run in WIN7

  1. #1
    Junior Member
    Join Date
    Aug 2013
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Like to convert old dos based app to run in WIN7

    Hey guys,

    Ill keep my initial post short and see where it leads. Admins, if this post is misfiled, please feel free to move it to the proper sub-forum.

    Ill start by saying that I have little current programming experience.
    What I have is an old engineering application that currently will not run in windows, the source looks like a batch file to the best of my knowledge, perhaps old VB code. (hard copy not electronic format)
    This app does calculations to determine when a product (more information to the person that helps) will fail, based on pressure ratings, bend radius, bend repetitions, tensile strength etc...

    Some people have asked me if I wanted a java app or a winforms app. and im not sure which way to go, if theres a simple conversion, or if it truly requires a 100$ / hr programmer.

    ANY info greatly appreciated
    I can post a snippet of the code for example if needed, but I wont reveal the whole source to anyone other than the person completing the job for me, should someone be willing to help.

    Thanks,

    k


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: Like to convert old dos based app to run in WIN7

    To translate code to another programming language, you don't do it line-by-line. You look at the overall behavior of the program and recreate it in the target language however is most appropriate for that language. So without knowing the full behavior you're looking for, it's a little hard to ballpark a cost. Either way, the original source code is irrelevant unless you want to look at it for a specific algorithm.

    That being said, what language you choose really depends on a few things. Is this a command line program, or a gui program? Does it require any native access (to hardware or OS-specific resources), or is it generic enough to run on any machine? And most importantly: what language do you already know?
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Junior Member
    Join Date
    Aug 2013
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Like to convert old dos based app to run in WIN7

    Thanks for the reply Kevin,

    To answer your questions, (in order)

    The program runs entirely in a dos environment and uses print commands to display information on the screen.
    Making menu selections were done by entering the corresponding number.

    I believe the app does not use any os rescources, or rely on hardware, to the best of my knowledge.

    And since I have no CURRENT language knowledge to speak of, just old simple stuff, looks like I am going to have to hire someone to do this job. For some reason I thought there might be something, some convertor, that would be able to do the translation. (I knew this was wishful thinking)

  4. #4
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: Like to convert old dos based app to run in WIN7

    Yeah, I doubt you'll be able to find a converter, and you definitely won't be able to find a 100% foolproof converter. How complicated is the program? If it's just a command-line program that does some math for you, I bet it's easier to do from scratch than you think.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  5. #5
    Junior Member
    Join Date
    Aug 2013
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Like to convert old dos based app to run in WIN7

    I do believe that's all its really doing, I took a screenshot of a random bit of code... maybe itll help

    Untitled.jpg

    again, thanks for your help!

  6. #6
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: Like to convert old dos based app to run in WIN7

    Screenshots of code don't really work. It's better to post it directly using the highlight or code tags.

    But if all it's doing is some math with basic input and output, then the program is pretty rudimentary and would make a great first assignment for somebody just starting out learning how to program.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  7. The Following User Says Thank You to KevinWorkman For This Useful Post:

    kpohlman (August 28th, 2013)

  8. #7
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Like to convert old dos based app to run in WIN7

    Looks like Basic with liberal use of GOTO statements.

Similar Threads

  1. Replies: 1
    Last Post: May 15th, 2013, 08:47 AM
  2. i want run app as windows service.
    By skuskusas in forum What's Wrong With My Code?
    Replies: 1
    Last Post: November 5th, 2012, 04:03 AM
  3. Convert Desktop app into Applet
    By Nesh108 in forum Java Theory & Questions
    Replies: 2
    Last Post: October 27th, 2011, 08:11 AM
  4. [SOLVED] Turn Based Game run by Commands
    By EggoH1992 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: August 11th, 2011, 10:23 AM
  5. How do i run this Accounting console app?
    By mirzahat in forum AWT / Java Swing
    Replies: 2
    Last Post: November 16th, 2010, 12:22 AM