Application Development with Harbour/Installation

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Installation for Windows[edit | edit source]

-Go to https://sourceforge.net/projects/harbour-project/files/binaries-windows/3.0.0/ for version 3.0 (download harbour-3.0.0-win.exe), or head to https://sourceforge.net/projects/harbour-project/files/binaries-windows/nightly/harbour-nightly-win.exe/download for the latest Nightly Build (a more up-to-date version)
-Download and Install harbour-3.0.0-win.exe or harbour-nightly-win.exe and choose a destination folder - for example C:\hb30 if you downloaded version 3.0 (we'll assume you did so in the rest of the chapter)

HelloWorld test
-Open a CMD window (Go to Windows -> click on the "Start" button -> Type "cmd.exe" in the search box)
-Type "cd C:\hb30\tests" (without the quotes) on the cmd window and press "Enter"
-Type "C:\hb30\bin\hbmk2 hello.prg" (again, without the quotes) and press "Enter"
-Type "hello.exe" and press "Enter" (You should see "Hello world!" appears on the screen upon execution of the program)

The code of hello.prg looks like this:

PROCEDURE Main()
? "Hello world!"
RETURN