Directive: Application |
The 'application' directive sets the application type and is required in the source code. This have to be the first token in the code. Syntax: "application" [ text "," ] [ "(" integer "." integer ")" "," ] ( "gui" | "cui" | "console" ) ";"
Using the parameter "gui" will tell the compiler to produce a "graphical-user-interface" PE (portable executable) file, while using the "console" or the "cui" parameter will tell the compiler to produce a "console-user-interface" (CUI) PE file. In a CUI application, a console window is automatically allocated to the program. The text parameter (optional) is the application title which can be reached in the sources through the variable "Title". The two integers encircled of parenthesis (also optional) are the version and build number which can be reached in the sources through the constants "Version" and "Build". |