Tuesday, May 14, 2024

Monday, May 13, 2024

How to call ReadConsoleInputW using Zig in Windows

How to call ReadConsoleInputW using Zig in Windows

ReadConsoleInputW can be used to mimic kbhit() C function found in Borland C/C++.
OS: Windows 10 22H2
Zig: 0.12
Compile ReadConsoleInputW.zig:
PS C:\prj> zig build-exe -lc .\ReadConsoleInputW.zig

Thursday, May 02, 2024

How to call MessageBoxW using Zig in Windows

How to call MessageBoxW using Zig in Windows

OS: Windows 10 22H2
Zig: 0.12
Compile messageboxw.zig:
PS C:\prj> zig build-exe -lc .\msgboxw.zig

How to call MessageBoxA using Zig in Windows

How to call MessageBoxA using Zig in Windows

OS: Windows 10 22H2
Zig: 0.12
Compile messagebox.zig:
PS C:\prj> zig build-exe messagebox.zig -lc

Tuesday, April 30, 2024

Zig - hello world

Hello world in Zig

PS C:\prj> mkdir hello-world
PS C:\prj> cd .\hello-world\
PS C:\prj\hello-world> zig init
You should see this output during init
info: created build.zig
info: created build.zig.zon
info: created src\main.zig
info: created src\root.zig
info: see `zig build --help` for a menu of options
Run it like this
PS C:\prj\hello-world> zig build run
The output should look like this
steps [4/7] install... All your codebase are belong to us.
Run `zig build test` to run the tests.

Installing QNX 6.4.1 on Ubuntu 20.04

Installing QNX 6.4.1 on Ubuntu 20.04 Install pre-requisites $: sudo dpkg --add-architecture i386 $: sudo apt update $: sudo apt install li...