(02-18-2022, 04:07 PM)1e9t8m29 Wrote: Thanks @dbsoft. I have another question. Does the usage of dwmain compulsory? I want to use WinMain directly.
You can use WinMain(), it will just make the source code Windows only.
The macro exists so that the same source code can be used on any platform.... so if cross platform is not a concern feel free to just use WinMain() on Windows... or main() on most other platforms.
On iOS and Android dwmain() is pretty much compulsory.