How to resolve the algorithm Hello world/Graphical step by step in the BASIC programming language
Published on 12 May 2024 09:40 PM
How to resolve the algorithm Hello world/Graphical step by step in the BASIC programming language
Table of Contents
Problem Statement
Display the string Goodbye, World! on a GUI object (alert box, plain window, text area, etc.).
Let's start with the solution:
Step by Step solution about How to resolve the algorithm Hello world/Graphical step by step in the BASIC programming language
Source code in the basic programming language
' Demonstrate a simple Windows application using FreeBasic
#include once "windows.bi"
Declare Function WinMain(ByVal hInst As HINSTANCE, _
ByVal hPrev As HINSTANCE, _
ByVal szCmdLine as String, _
ByVal iCmdShow As Integer) As Integer
End WinMain( GetModuleHandle( null ), null, Command( ), SW_NORMAL )
Function WinMain (ByVal hInst As HINSTANCE, _
ByVal hPrev As HINSTANCE, _
ByVal szCmdLine As String, _
ByVal iCmdShow As Integer) As Integer
MessageBox(NULL, "Goodbye World", "Goodbye World", MB_ICONINFORMATION)
function = 0
End Function
' Demonstrate a simple Windows/Linux application using GTK/FreeBasic
#INCLUDE "gtk/gtk.bi"
gtk_init(@__FB_ARGC__, @__FB_ARGV__)
VAR win = gtk_window_new (GTK_WINDOW_TOPLEVEL)
gtk_window_set_title (gtk_window (win), "Goodbye, World")
g_signal_connect(G_OBJECT (win), "delete-event", @gtk_main_quit, 0)
gtk_widget_show_all (win)
gtk_main()
END 0
You may also check:How to resolve the algorithm Boolean values step by step in the Dc programming language
You may also check:How to resolve the algorithm Unicode strings step by step in the Seed7 programming language
You may also check:How to resolve the algorithm Balanced ternary step by step in the J programming language
You may also check:How to resolve the algorithm Variable size/Get step by step in the ALGOL 68 programming language
You may also check:How to resolve the algorithm Self-describing numbers step by step in the FreeBASIC programming language