Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is dwmain?
#6
(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.
Reply


Messages In This Thread
What is dwmain? - by 1e9t8m29 - 02-17-2022, 04:21 PM
RE: What is dwmain? - by dbsoft - 02-17-2022, 11:06 PM
RE: What is dwmain? - by 1e9t8m29 - 02-18-2022, 06:31 AM
RE: What is dwmain? - by dbsoft - 02-18-2022, 12:10 PM
RE: What is dwmain? - by 1e9t8m29 - 02-18-2022, 04:07 PM
RE: What is dwmain? - by dbsoft - 02-18-2022, 04:28 PM
RE: What is dwmain? - by dbsoft - 03-22-2022, 07:50 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)