Sep. 21st, 2015

Nerdery

Sep. 21st, 2015 12:50 pm
jojomojo: (southpark)
My pet personal tech project can now compile this to a working 64-bit Windows executable:


extern USER32.DLL:MessageBoxA(Uint64 hwnd, Byte^ text, Byte^ caption, Uint64 type)
extern KERNEL32.DLL:ExitProcess(Uint64 val)

Byte^ text = "Hello World"
MessageBoxA(0, text, text, 0)
ExitProcess(42)


(it already does the equivalent on Linux with raw syscalls instead of Win32 API calls.)

Profile

jojomojo: (Default)
jojomojo

July 2017

S M T W T F S
      1
234567 8
91011121314 15
16171819202122
23242526272829
3031     

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 24th, 2017 01:22 am
Powered by Dreamwidth Studios