cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Windows Programming
functons with return types and something
functons with return types and something else
Apr 28, 2016 at 5:11pm UTC
stav
(188)
whats this thing where functions have a return type and then something else?
like here with int and WINAPI ?
int WINAPI WinMain()
Apr 28, 2016 at 6:11pm UTC
Thomas1965
(4571)
http://stackoverflow.com/questions/2348442/what-does-winapi-in-main-function-mean
Apr 28, 2016 at 8:08pm UTC
stav
(188)
tyvm
Apr 29, 2016 at 5:38am UTC
closed account (
E0p9LyTq
)
MSDN has the WinMain entry point defined as:
int
CALLBACK WinMain()
I have seen Windows code that uses
int
APIENTRY WinMain()
If you look at MSDN's "Windows Data Types" table the three different calling types (WINAPI, CALLBACK and APIENTRY) are
#define
d to resolve to __stdcall.
https://msdn.microsoft.com/en-us/library/windows/desktop/aa383751%28v=vs.85%29.aspx
Topic archived. No new replies allowed.