Solved

Converting QBasic to Visual Basic

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

920 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

14 Experts available now in Live!

Get 1:1 Help Now