You are browsing as a guest. Sign up (or log in) to start making projects!

2h 16m 16s logged

Devlog #1 I started working on the windowing part of my Geogebra-like app in Rust, using Win32 FFI directly without any crates, so today was mostly about copying things over: manually redeclaring the Windows structs (WNDCLASSEXW, MSG, BITMAPINFOHEADER…) and the user32/gdi32 functions I need for the project. Honestly, it was a bit boring to copy each field in the right order from the Microsoft documentation (with no room for error, because a misaligned #[repr(C)] crashes silently instead of giving a clear compile error lol) BUT it was instructive because I now understand much better why Windows expects strings in UTF-16, and why biHeight must be negative if I want my image right side up rather than inverted, for example…

0
2

Comments 0

No comments yet. Be the first!