The difference between HWND and HINSTANCE
-
Both are void pointers!:) ARSALAN MALIK
-
the HWND is an opaque handle to an internal Windows data structure that corresponds to a window and consumes system resources when present. A Windows window is identified by a “window handle” but where as HINSTANCE is Handle to an object for which memory is allocated Neelesh Jain
-
HWND is a pointer to an insternal structure that contains the state information for a window. HINSTANCE is a pointer to an internal structure that contains the executable module state information. There is only one HINSTANCE, but there may be 0 or more HWND for a given program. Note: There are also HMODULE, which is a pointer to an internal structure that contains the state information for a module - a module is a dll or exe ... which means that HINSTANCE can also be thought of as being a special type of HMODULE. You use HWND to manipulate windows - move them, resize them, ... You use HINSTANCE/HMODULE to access resources in the exe or dll - icons, bitmaps, strings, ... ...cmk Save the whales - collect the whole set