Display a black square on windows 10

⚓ Rust    📅 2025-12-02    👤 surdeus    👁️ 3      

surdeus

Hello,

I now have a slightly better understanding of rust with the help of the rust book. I want to ask the people how to display a black square, for example a 400px by 400px square.

I want to do this without crates or librairies or anything other than rust programmation and win32 api or winRT native api calls. (rust if my first real programming language, I know nothing about win32, even less so how to call it with rust).

In other words, I'd like to find book recommendations or informations about how to make the simplest gui (an executable file which would create a black square) solely relying on a rust written program.

The reason is because I would like to understand how gui works on windows because I find no information about it.

Thanks and have a good day

1 post - 1 participant

Read full topic

🏷️ Rust_feed