Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is dwmain?
#3
(02-17-2022, 11:06 PM)dbsoft Wrote: Hope that makes sense?

The problem is I want to know what the code is after it's being preprocessed. gcc -E on this snippet only returns if defined(1) and nothing else. It's on WIN32 so of course __WIN32__ is true. But what I want to know is what actually the declaration and definition of dwmain. The code is very obscure I can't preprocess it by hand.

You see it's returning _dwmain(argc, argv) but where is _dwmain is defined? I searched through out the source code but found no where else _dwmain being used other than on dw.h.

If _dwmain is declared like this: int _dwmain(a, b) then where is the definition of it? It can't be the int WINAPI WinMain because this very function return _dwmain(argc, argv).
Please give me the preprocessed (by hand) of that snippet, I want to know what you actually wanted to write in plain C code, without macros. Thanks.
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: 2 Guest(s)