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…
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.