Solved

Converting QBasic to Visual Basic

Posted on 1998-07-02
3
513 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
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now