Category:QB64: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 9:
An example of the "Hello, World" program is:
PRINT "Hello, World!"
 
An example of how QB64 allows picture and audio files:
sound_effect& = _SNDOPEN("sound.wav")
_SNDPLAY sound_effect&
imagename& = _LOADIMAGE("image__name.png")
 
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 WAV files as well as libraries allowing users to use higher resolution graphics than the 640×480 offered by QuickBASIC, 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. The programmer has the option to include a library of their own through the $INCLUDE command just as QuickBASIC did.
Anonymous user