HANDLE in MFC
-
what does the handle types exactly means...
-
what does the handle types exactly means...
it is a unique identifier for an object that the OS can manage/handle... hence its name
[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]
-
what does the handle types exactly means...
Reference : MSDN web pages The [handle] attribute specifies a user-defined or "customized" handle type. User-defined handles permit developers to design handles that are meaningful to the application. A user-defined handle can only be defined in a type declaration, not in a function declarator. A parameter of a type defined by the [handle] attribute is used to determine the binding for the call and is transmitted to the called procedure.
-
what does the handle types exactly means...
manju23reddy wrote:
what does the handle types exactly means...
A handle only makes sense to the module that created the handle. Any client must not interpret the value of the handle, it's only use is to identify something that the library is operating on. This is not specific to MFC or any other framework/library. The data type
HANDLE
is usually a typedef'edvoid*
, which means that it is as wide as the processor architecture it executes in. An explicit type cast can be made inside the library without losing precision or bits to e.g.int
."It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown -
what does the handle types exactly means...
-
what does the handle types exactly means...
You already got couple of good explanations about handle. As an add-on information, have a look at this article - Give Me a Handle, and I'll Show You an Object[^]. It will give you more info about handles. Regards, Jijo.
_____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.