XBLite

Category:Requests for expansion#XBLiteCategory:Books to be broken into subpages

XBLite is an offshoot of the XBasic programming language. The XBLite compiler translates programs from source form into assembly language. From this point, conventional tools build the final executable program or DLL library. The XBLite compiler will work on all Windows platforms including Win98, NT, 2000, and XP.

XBLite is a "younger brother" of XBasic. XBasic was developed by Max Reason to be used under MS-Windows and LINUX OSs. In 2000, he made the entire language, compiler, and PDE freely available under an Open Source GPL. The XBasic language itself has not been altered so console programs in XBasic will run identically under XBLite. The XBLite compiler is also released under the same OpenSource GPL license.

Enhancements, post XBasic

XBLite has been enhanced for use under Windows. It is now possible to:

  1. Create true command line Win32 console programs.
  2. Use the windows common controls for creating GUI applications.
  3. Easily add resources to your executable program.
  4. Use inline assembly language in your program.
  5. Modify and extend the XBasic language.

And, all of the windows common controls and common dialogs are now available to create win32 native graphical user interfaces (GUIs).

"Hello World!" in XBLite

A common example of the language's syntax is the "Hello World" program:

A console version

IMPORT  "xst"	 ' Standard library : required by most programs
DECLARE FUNCTION Entry ()

FUNCTION Entry ()
 PRINT "Hello World!"
 a$ = INLINE$ ("Press Enter to quit >")
END FUNCTION
END PROGRAM

A GUI version

IMPORT "gdi32"             ' import a system library
IMPORT "user32"            ' import a system library
DECLARE FUNCTION Entry ()  ' declare function Entry()

FUNCTION Entry ()          ' begin function                           
 ' display a message box  
 MessageBoxA (0, &"Hello World!", &"Hello World Window", $$MB_OK)
END FUNCTION               ' end function
END PROGRAM                ' end program

See Also

XBasic

Category:Subject:BASIC programming language/all books Category:Subject:Computer programming languages/all books Category:Subject:Computer programming/all books Category:Subject:Computer science/all books Category:Subject:Computing/all books Category:Subject:Books by subject/all books Category:Subject:Computing/all books Category:Subject:Books by subject/all books Category:Book:XBLite#%20 Category:Book:Wikibooks Stacks/Books#XBLiteCategory:Shelf:BASIC programming language Category:Shelf:BASIC programming language/all books Category:Shelf:Computer programming/all books#Computer%20programming Category:Shelf:Computer programming languages/all books#Computer%20programming%20languages Category:Shelf:Computer science/all books#Computer%20science Category:Department:Computing/all books#Computing Category:Freshly started booksCategory:Books by completion status/all books
Category:Alphabetical/X Category:Book:Wikibooks Stacks/Books Category:Book:XBLite Category:Books by completion status/all books Category:Books to be broken into subpages Category:Department:Computing/all books Category:Freshly started books Category:Requests for expansion Category:Shelf:BASIC programming language Category:Shelf:BASIC programming language/all books Category:Shelf:Computer programming/all books Category:Shelf:Computer programming languages/all books Category:Shelf:Computer science/all books Category:Subject:BASIC programming language Category:Subject:BASIC programming language/all books Category:Subject:Books by subject/all books Category:Subject:Computer programming/all books Category:Subject:Computer programming languages/all books Category:Subject:Computer science/all books Category:Subject:Computing/all books