Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QBasic to Visual Basic?
#1
OK -- this is a potentially sensitive question for a QBasic forum, but here goes...

I'm quite happy with QBasic, but I've been asked to translate some of my programs to Visual Basic so they can run directly under Windows. I played around with Visual Basic, but don't know it nearly as well as QBasic.

Are there any "translator programs" that can help me do this -- or would I be stuck doing "cut and paste" (not to mention complete restructing) myself? Or other ideas?

Many thanks.
Reply
#2
no. windows is completely different from dos, and not enough to automatically convert your stuff. you're just going to have to port the program to visual basic, which shouldnt take a horribly long time if you know the source well.
i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
Reply
#3
to quote myself, from a *very* similar thread:

Quote:There should be some kind of statement writen in the sky that read: "Although QB and VB 's second letter means "Basic", you can't user your DOS code in Windows".

If you *really* need to reuse your code, you could look for those API calls which allows you to write Console programs in VB. It is not very hard, and it is explained here: http://nirsoft.tripod.com/vb/console.html
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)