Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Blinker 5.10 Online Reference - <b> microsoft quickbasic 4.5</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Microsoft QuickBASIC 4.5
------------------------------------------------------------------------------
 Blinker supports version 4.5 of Microsoft QuickBASIC to create DOS real mode
 programs. The following sample programs written in Microsoft QuickBASIC 4.5
 will be used throughout this section to illustrate the basics of linking
 Microsoft QuickBASIC programs with Blinker.

 Please note that due to restrictions in the QuickBASIC library Blinker does
 not support dynamic overlaying of QuickBASIC in conjunction with the use of
 event handling, i.e. the use of ON <event> or ON ERROR commands. All other
 functions of Blinker, however, are fully supported with QuickBASIC.

 TEST.BAS
 DECLARE SUB limerick
 CALL limerick
 END
 LIMERICK.BAS
 SUB limerick
 print "There was a young fellow from Microsoft"
 END SUB

 The two modules are compiled as follows :

 BC -o test;
 BC -o limerick;

 To execute Blinker from the command line :

 BLINKER FILE test,limerick OUTPUT t

 This causes Blinker to link the two object modules specified in the FILE
 command (test.obj and limerick.obj) to create an executable program with the
 name t.exe.

 Non-overlaid program

 The following link script file produces the same result as the above
 execution of Blinker from the command line:

 # TEST.LNK (This is a comment)
 FILE test
 FILE limerick
 OUTPUT t       # Output .EXE name

 To execute Blinker when using the above sample link script file use the
 following command :

 BLINKER @test

 The `@' character informs Blinker that what follows is the name of a link
 script file. Blinker will assume the extension `.LNK' unless one is given on
 the command line.

 Non-overlaid program with additional commands

 # TESTCMD.LNK
 # Burn in a serial number
 BLINKER EXECUTABLE SERIAL 123
 BLINKER MESSAGE WINK    # Only wink one eye
 FILE test               # Main routine
 FILE limerick           # Secondary file
 OUTPUT t                # Output .EXE name
 MAP A,S                 # Create MAP file
 STACK 4096              # 4kb stack

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson