Improved Windows support

This commit is contained in:
Eduard Urbach 2024-08-19 17:25:51 +02:00
parent a7835a4494
commit 32ae625af4
Signed by: eduard
GPG key ID: 49226B848C78F6C8
8 changed files with 50 additions and 8 deletions

10
examples/winapi/winapi.q Normal file
View file

@ -0,0 +1,10 @@
import mem
main() {
text := mem.alloc(4)
text[0] = 'H'
text[1] = 'i'
text[2] = '!'
user32.MessageBoxA(0, text, text, 0x00240040)
mem.free(text, 4)
}