Page 1 of 1

GlobalFree

PostPosted: Jun 5, 2002 @ 7:44pm
by Johan

PostPosted: Jun 5, 2002 @ 9:11pm
by Kzinti

PostPosted: Jun 5, 2002 @ 9:22pm
by Johan

PostPosted: Jun 5, 2002 @ 9:59pm
by Kzinti
Nobody decided to strip the header from the BMP to "save memory"...

The memory bitmap format was defined and then they needed some kind of header to save them to files.

Regarding GetDC(0), I find this disturbing =) I will fix this... Of course the DC should be release with "ReleaseDC(0,hdc)".

I guess I (and other people) get away with this because the DC get destroyed when the process exits. Multiple calls to GetDC(0) probably always return the same DC using an internal reference count. It could crash after loading a few thousands images =)

PostPosted: Jun 5, 2002 @ 10:05pm
by Kzinti

PostPosted: Jun 5, 2002 @ 10:10pm
by Johan

PostPosted: Jun 5, 2002 @ 10:32pm
by Kzinti

PostPosted: Jun 5, 2002 @ 10:39pm
by Kzinti