Closed Thread Icon

Preserved Topic: Visual Basic + QBasic Pages that link to <a href="https://ozoneasylum.com/backlink?for=16636" title="Pages that link to Preserved Topic: Visual Basic + QBasic" rel="nofollow" >Preserved Topic: Visual Basic + QBasic\

 
Author Thread
KARN
Bipolar (III) Inmate

From: North Bay, Ontario, CA
Insane since: Apr 2001

posted posted 06-21-2002 08:43

Is it possible to compile Qbasic to programs to .exe with Visual Basic... i have both C++ and 6.00...

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 06-21-2002 09:10

did you already try to compile qbasic using visualbasic?

lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 06-21-2002 10:04

hmm....It is possible to compile QBasic apps to .exe w/ QBasic itself.

QBasic basically, doesn't have forms and stuff so it is a console application and i'm not sure if VB can compile Console apps.

quote:
with Visual Basic... i have both C++ and 6.00...


C++ ? how are you relating these stuff together? ...
unless you compile w/ VB and link w/ VC ?!

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 06-21-2002 11:29

Google came up with these links:

http://www.geocities.com/SiliconValley/Park/4504/basic_compilers.html
http://www.thefreecountry.com/developercity/basic.shtml
http://www.phys.uu.nl/~bergmann/compilers.html


Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

posted posted 06-21-2002 11:41

Karn- try Gcc

basic's holding you back, man...


Code - CGI - links - DHTML - Javascript - Perl - programming - Magic - http://www.twistedport.com
ICQ: 67751342

KARN
Bipolar (III) Inmate

From: North Bay, Ontario, CA
Insane since: Apr 2001

posted posted 06-22-2002 07:33

wait maybe i asked the wrong question... I know of compiling in Qbasic the thing is when compiled the program can only be executed in MS-Dos... when i opened the file in Visual Basic i though i can make it a windows program but Visual Basic won't compile with the Qbasic code... I was wondering if there's a setting to change or something...

lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 06-22-2002 08:32

KARN, I believe QBasic's syntax is fully compatible w/ VB.

Remember that you can't print to screen, instead you have to MsgBox or create a memo field and add lines to it as if the console screen.

so, just copy your QBasic code and then create a module file in VB and put your code inside a procedure, from within the VB form and onFormLoad (or create...) call your procedure from inside the module.

make sure you replace all "print" and other dos related functions (like CLS , character reading, ...) w/ windows related functions / events...
its a long task but it works.


Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

posted posted 06-22-2002 15:25

isn't there a way to change the Standard Out to something a little more windows friendly?


Code - CGI - links - DHTML - Javascript - Perl - programming - Magic - http://www.twistedport.com
ICQ: 67751342

warjournal
Maniac (V) Mad Scientist

From:
Insane since: Aug 2000

posted posted 06-22-2002 15:41

I actually prefer PowerBasic for some reason. Maybe it's because I could never find my QBasic.

I've ported a few of my PBasic programs to VB. It's not exactly what I would call fun. For the most part, you can cut and paste chunks of code. But I still can't come to gribs with the differences in program flow between the two. That's one paradigm shift I have yet to make.


« BackwardsOnwards »

Show Forum Drop Down Menu