Closed aurelienlh closed 2 days ago
https://github.com/microsoft/windows-rs/tree/master/crates/samples
You need to pick the version of the samples that match the version of the crate you're trying to use.
The samples for 0.57 can be found at https://github.com/microsoft/windows-rs/blob/0.57.0/crates/samples/. This create window sample does not have a ?
on that line. (https://github.com/microsoft/windows-rs/blob/0.57.0/crates/samples/windows/create_window/src/main.rs#L39)
Hope that helps!
Summary
_ I launch the code as it is and it print the error int the title but It's working if I erase the "?" line 37 before the object "CreateWindowExA" in crates/samples/windows/createwindow/src/main.rs
Crate manifest
Crate code