PureBasic - Hello World Example

Hello World Example

The following single line of PureBasic code will create a standalone executable (3.00 KB (3,072 bytes) on Windows version) that displays a message box with the text "Hello World".

MessageRequester("Message Box", "Hello World")

And the following variant of the same code, which instead uses an inline Windows API call with no need for declarations or other external references, will create an even smaller 2.00 KB (2,048 bytes) standalone executable for Windows.

MessageBox_(0, "Hello World", "Message Box", 0)

Read more about this topic:  PureBasic

Famous quotes containing the word world:

    The good enough parent, in addition to being convinced that whatever his child does, he does it because at that moment he is convinced this is the best he can do, will also ask himself: “What in the world would make me act as my child acts at this moment? And if I felt forced to act this way, what would make me feel better about it?”
    Bruno Bettelheim (20th century)