flat assembler
Message board for the users of flat assembler.

Index > Windows > New style windows???

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 19872
Location: In your JS exploiting you and your system
revolution 16 Feb 2008, 17:20
f0dder wrote:
MSDN/PlatformSDK doesn't say that "you only need to make sure comctl32.dll is loaded, you don't need to call InitCommonControls()
It kind of does say that although I grant you not directly. It says that you should call InitCommonControls to ensure that the dll is loaded. In a sense it implies that loading the dll is the end goal, so once that goal is achieved then your job is done.
Win95 doc's wrote:
The InitCommonControls function ensures that the common control dynamic-link library (DLL) is loaded.
That is all is says, it gives no other reason for the function to exist.
Post 16 Feb 2008, 17:20
View user's profile Send private message Visit poster's website Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 16 Feb 2008, 17:41
Not the best wording if that's from some old PlatformSDK version... here's what the most recent version says:

http://mtbeta.msdn.microsoft.com/en-us/library/aa924976.aspx wrote:

This function registers and initializes the common control window classes. This function is obsolete. New applications should use InitCommonControlsEx (function).


I guess that initialization is in reality done on process or thread attach to the DLL - but it could just as well have been done by the InitCommonControls call.

I'm nazi about this, yes, but I fucking hate when badly coded software breaks on a newer system, and the amount of backwards-compatibility shit Microsoft has to keep lugging around because of it.
Post 16 Feb 2008, 17:41
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.