Solved

Converting QBasic to Visual Basic

Posted on 1998-07-02
3
560 Views
Last Modified: 2013-11-25
Is there any tools or programs that converts BASIC PDS 7.1 source code to Visual Basic source code.
I am facing a huge job converting this program.
Any kind of automation would save me a lot of time.
Do You know of any tools or programs to accomplish  this?
0
Comment
Question by:rus
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 6

Expert Comment

by:alamo
ID: 1464781
My own experience doing this same thing long ago (when VB1.0 was still in beta) was that the event-driven environment was so much different that I threw away all the user interface. The parts of my programs which did all the gut processing and well enough modularized I converted by hand with nothing but search and replace.

I know this isn't much help really, I just wanted to give my experience, and say that converting the UI automatically is often not a good thing anyway, and converting the rest is often not as big a task as it seems. Good luck!
0
 
LVL 6

Expert Comment

by:clifABB
ID: 1464782
I add my voice to alamo.  I did a port of an app from PDS7 to VB3 and there is so much that will be thrown away that a converter would never have worked.  (Even though the boss wanted the UI to not change!)
0
 
LVL 9

Accepted Solution

by:
cymbolic earned 50 total points
ID: 1464783
There are no tools for making the conversion.  Basically (that's a pun) only some of your internal functions will come across unscathed, with very little changes.  Your complete front end, and the central processing model of the older programs has to be rewritten anyway.  Much of the event driven model is not really basic code, it's merely instantiation of controls, and method invoking/event processing on those controls.  There is very little that will make the trip to VB.  Maybe some essential string handling routines, basic binary file i/o, etc.  but the rest of the stuff has to be rewritten.  

To really understand this, just build a simple application in VB to reflect one of your most simple programs in Professional Basic, and the implications will be very clear to you.

You will have a fluency with the basic language that many VB developers miss, since their main focus is on control handling and first instinct seems to be to get a third party control to do the function.  This is not entirely inappropriate, once you realize the complexity of the graphic environment for both screen and printer handling, and the overly complex arrangement of WIN32 calls required, its often much more cost effective to use something that only partially works, since it would take you forever to get it that far yourself.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month9 days, 21 hours left to enroll

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question