-
August 5th, 2004, 12:11 AM
#1
Why do MS prefer to provide a new function, Cwnd::CreateEx rather than override
Why do MS prefer to provide a new function, CWnd::CreateEx
rather than override CWnd::Create?
-
August 5th, 2004, 01:31 AM
#2
-
August 5th, 2004, 01:49 AM
#3
Because there are 2 WinAPI Functions CreateWindow and CreateWindowEx, of course windows is C written so there is no way for override ... I think CreateWindow is just a macro calling CreateWindowEx by providing a default parameter ...
-
August 5th, 2004, 02:21 AM
#4
Yeah, but I think it's not because it's C written (C++ is C written, too ), rather WinAPI is designed not only for C++, but also for C, VB... those don't have function overriding
Trust urself!
-
August 5th, 2004, 02:28 AM
#5
Originally Posted by sephiroth2m
Yeah, but I think it's not because it's C written (C++ is C written, too ), rather WinAPI is designed not only for C++, but also for C, VB... those don't have function overriding
I meant that the WinAPI is purely C written (98% I think, just take a look at the ReactOS Source Code), VB was invented later, and just supports the C Calling Convention __stdcall ...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|