I've got a Windows application with a GUI written in Rust and winapi. Despite its GUI, it behaves like a console application. When the exe
file is started, a Command Prompt
window pops up, and the application is run from it. This is not what I want; a main window should open instead, as in all real desktop apps. How can I achieve this goal in Rust with winapi?
I've investigated some options. You can develop Windows desktop applications using Tauri or gtk-rs, but both of these techniques have drawbacks when used for Windows apps. More options may be found here. I've also tried the windows-rs samples available on the internet, but they're all console apps with a graphical user interface, which isn't what I'm looking for.
I also note that C++ desktop applications use the function int APIENTRY wWinMain(...)
as the entry point while console applications use int main(...)
, and wWinMain
doesn't seem available in rust winapi.