i am reading the Iczelion tutorial and a question comes to my head...

it's something about the Handlers (hInstance, hWin,hdc,hFont, etc)

How many Handlers (of any class) could exist?

just 1 hInst by program?
a hWind by window?
just 1 HDC (for the monitor)?

it is my idea or EVERYTHING in Windows32 programs works with damn Handlers?

sorry for this dummy questions , but i have to do it ...

:grin: :grin:
Posted on 2002-11-22 13:29:31 by DrBios
handles are basically dword values...

HFILE and HWND are equates to DWORD.
You can have many handlers, especially when dealing with files and GDI.
Basically, you have a hInstance by program, but it is not necessary to store it as a handle...
And each window has it own window handle.
You can have several HDC to perform GDI operations.
Posted on 2002-11-22 13:34:16 by JCP
could u plese explain me a little bit the DAMN Handler device context (HDC)?:grin: :confused:
Posted on 2002-11-22 14:15:06 by DrBios
Handles are basically temporary IDs.

A very few handles are memory addresses, but in general, all handles should be treated as arbitrary values whose only function is to serve as a system-assigned ID number.

A device context is basically a drawing kit. Its core is a drawing surface (bitmap, screen area, or printer/plotter area), but it also holds a pen, a font, etc. Just like using read and write functions with file handles to access and alter files, you use various functions with device context handles to access and alter (paint) your drawing surface.
Posted on 2002-11-22 15:30:22 by tenkey
Thanks ...now i am more clear...and with a big Headache :confused: ....i have to much information to handle in my head...oh god ...handle damn!
Posted on 2002-11-22 18:48:55 by DrBios
How many Handlers (of any class) could exist?

Under w2k each process can have 256*256*256 handles.
Posted on 2002-11-23 03:46:19 by Four-F