Getting started - QB64 Wiki

Getting started

From QB64 Wiki

Jump to: navigation, search

You can download QB64 at the qb64.net website, you can also download it from the forums under the Download category.


You install QB64 by simply unpacking the zip file to any drive/folder. Be sure that the directories are extracted as well.


In order to start QB64 you double click on it, and the IDE will show up or you can compile a BAS file directly using a command line or batch file using:

QB64 - c filename.bas 'must use a BAS file for now

The IDE currently does not support TXT files! BAS files should be saved as Text readable!


The IDE is a editor that checks the code as you write it or you can Open a BAS file in the menu. The IDE will check that there are not any errors that it can detect. As I write this the IDE isn't completed but can be used very well either way.

Working in the IDE is pretty straight forward, you write the code and then you press F5 or navigate through the menu to Run - Start to compile and run the code. A .exe file will be made in the QB64 folder named "untitled.exe" if you haven't saved it to a different name (in which case it will be named "filename.exe".


Saving is easy also, you click File - Save As... just as in any ordinary program and choose the location and filename. If you run it the .exe will still be in the QB64 directory though, the .exe is always created there (at least until there is a option to specify the .exe location).


The IDE is DOS-style but has windows functions such as copy&paste from the clipboard etc.


So let's create our first program! Just type it in the IDE (or copy&paste).


CLS
PRINT "My first QB64 program!"
END


Press F5 to run it and watch as it prints "My first QB64 program!" to the screen!


If you don't get QB64 to run, be sure to let us know at the forum at qb64.net (but first be sure to check that the problem hasn't been posted before).


If you think the QB64 IDE is too incomplete or if you'd rather work in a different editor (like notepad) then that will work just as fine, just open up the file in QB64 afterwards and run it or compile it using a command line or batch file the way explained above.


The Community hopes that you will have fun programming in QB64!


Navigation:

QB64 Tutorials

Go to Keyword Reference - Alphabetical

Go to Keyword Reference - By usage

Views
  • Page
  • Discussion
  • View source
  • History
Personal tools
  • Log in
Toolbox
  • What links here
  • Related changes
  • Special pages
  • Printable version