5 ms·
I've not done MFC Win32 programming since 1999 but if I recall those programs don't execute the main() function. They instantiate the Win32 class for your app o
by sys_64738 7mo ago
I've not done MFC Win32 programming since 1999 but if I recall those programs don't execute the main() function. They instantiate the Win32 class for your app or something like that. I can't remember any details anymore.
- int_19h 7mo agoYou still have a main function in Win32, it's just called WinMain and has a slightly different signature. MFC has CWinApp, which you'd normally subclass, and a stock WinMain implementation that instantiates that, but it's not strictly necessary to subclass it, just convenient.
- gzread 7mo agoThey don't use main because they use WinMain, which is the entry point for Windows apps that don't run in a console window. WinMain should create an instance of the app class and call Run. "You're posting too fast." I never got that before. How fast is too fast? I tried to post this comment hours ago, but I couldn't. I guess I've been restricted because of this comment https://news.ycombinator.com/item?id=47473604 https://news.ycombinator.com/item?id=47473604 which feels pretty unfair
- sys_64738 7mo ago> "You're posting too fast." I never got that before. How fast is too fast? I tried to post this comment hours ago, but I couldn't. I guess I've been restricted because of this comment https://news.ycombinator.com/item?id=47473604 https://news.ycombinator.com/item?id=47473604 which feels pretty unfair I get that if I post more than six replies in an hour.
- gzread 7mo agoI've always been able to post several replies in an hour before.