Thu . 19 Aug 2019
TR | RU | UK | KK | BE |

QB64 originally QB321 is a self-hosting BASIC compiler for Microsoft Windows, Linux and Mac OS X, designed to be compatible with Microsoft QBasic and QuickBASIC QB64 is a C++ emitter, which is integrated with a C++ compiler to provide compilation via C++ code and GCC optimization2

QB64 implements most QBasic statements, and can run many QBasic programs, including Microsoft's QBasic Gorillas and Nibbles games3 Furthermore, QB64 has been designed to contain an IDE resembling the QBASIC IDE QB64 also extends the QBASIC programming language to include 64-bit data types, as well as better sound and graphics support It can also emulate some DOS/x86 specific features such as INT 33h mouse access, and timers


  • 1 History
  • 2 Syntax
  • 3 Extensions to QBASIC
  • 4 Libraries
  • 5 References
  • 6 External links


QB64 was originally compiled with QuickBASIC 45 After significant development, Galleon, the developer, became hindered by QuickBASIC's memory limitations and switched to Microsoft Basic PDS 71, which solved these problems for a short time After version 063, QB64 was able to compile itself so the Conventional memory limitations no longer applied


QB64's syntax is designed to be completely backwards compatible with QuickBASIC Line numbers are not required, and statements are terminated by newlines or by colons :

An example Hello, World program is:

PRINT "Hello, World!"

An example of QB64's emulation of VGA memory for compatibility:

CLS S$ = "Hello, World!" DEF SEG = &HB800 'sets the segment to video memory FOR J = 1 TO 15 FOR I = 1 TO LENS$ POKE J 160 + I - 1 2, ASCMID$S$, I, 1'character POKE J 160 + I - 1 2 + 1, J + 128 NEXT NEXT

An example of how QB64 allows picture and audio files:

sound_effect& = _SNDOPEN"soundwav" _SNDPLAY sound_effect& imagename& = _LOADIMAGE"image__namepng"

Extensions to QBASICedit

QB64's extended commands begin with an underscore in order to avoid conflicts with any names that may be used in a QuickBASIC program QB64 extends the QuickBASIC language in several ways It adds the new data types including _BIT, _BYTE, _INTEGER64 and _FLOAT as well as unsigned data types The new data types have suffixes just like the traditional BASIC data types QB64 also includes an audio library which allows playing most common audio formats including MP3, Ogg Vorbis, and MIDI files as well as libraries allowing users to use higher resolution graphics than the 640×480 offered by QuickBASIC,4 use different fonts, and plot images in BMP, PNG, and JPEG format It also allows the use of 32-bit colors as opposed to the limited 256 or 16, depending colors originally offered The programmer also does not have to specify which programming libraries to include since QB64 does it automatically However, work is being done to make QB64 more intelligent as to which libraries to include since at the moment it includes all of them The programmer has the option to include a library of their own through the $INCLUDE command just as QuickBASIC did


As of version 0954, the SDL version of QB64 has been discontinued The current and future versions of QB64 integrate OpenGL for its graphics and text Daily builds are generated with additions and fixes to the code base, hosted on GitHub

QB64 can also use DLL libraries for Windows, C++ and SDL functions and statements with a DECLARE LIBRARY block Users can also access C header files to run C functions


  1. ^ Stephane Richard 2007-11-16 "In The News" PCOPY! Issue #50 Basic Programming Archived from the original on 2009-12-21 Retrieved 2008-08-17 
  2. ^ EKVirtanen 2008-05-26 "Interview With Galleon" PCOPY! Issue #70 Basic Programming Archived from the original on 2008-08-21 Retrieved 2008-07-14 
  3. ^ "QB64 Screenshots - QB64/QBASIC Gorillas in QB64" Retrieved 2010-07-27 
  4. ^ "QB Advisor: Screen Modes 11, 12, and 13" Microsoft Corporation 1988 Retrieved 2008-07-25 

External linksedit

  • Official website
  • QB64org Partner Site, maintained by community members actively contributing to the compiler codebase
  • qb64 on GitHub
  • Black Annex is the best QBASIC game you've ever seen - an indie video game compiled in QB64 incorrectly stated to be QBASIC game in the article

qb64, qb64 commands, qb64 download, qb64 games, qb64 manual, qb64 sample programs, qb64 tutorial, qb64 wiki,,

QB64 Information about


  • user icon

    QB64 beatiful post thanks!


QB64 viewing the topic.
QB64 what, QB64 who, QB64 explanation

There are excerpts from wikipedia on this article and video

Random Posts

Timeline beyond October following the September 11 attacks

Timeline beyond October following the September 11 attacks

The following list contains certain dates beyond October 2001 involving the September 11 attacks ...
Smash Hits

Smash Hits

Smash Hits was a pop music magazine, aimed at teenagers and young adults and originally published in...
2014–15 USC Trojans women's basketball team

2014–15 USC Trojans women's basketball team

The 2014–15 USC Trojans women's basketball team will represent University of Southern California dur...
Trademark classification

Trademark classification

A trademark classification is a way the trademark examiners and applicants' trademark attorneys arra...

Random Posts (

Umudova, Nargiz Mamedaga Kyzy

Umudova, Nargiz Mamedaga Kyzy

Nargiz Umudova Azerb Nåğárgiz Umudova; born June 20, 1989, Baku, USSR - Azerbaijan chess player, gra
Arnheim, Karl Karlovich

Arnheim, Karl Karlovich

Karl Karlovich Arnheim 1840–1888 - Russian educator Brother of the Doctor of Medicine, one of the fi
ATR 42

ATR 42

ATR 42 is a passenger twin-engine turboprop aircraft for medium-haul flights. Manufacturer - French-
Rosario, Amed

Rosario, Amed

Herman Amed Valdez Rosario Isp German Amed Valdez Rosario, November 20, 1995, Santo Domingo - Domini