I just neet the bitmap to get the DC... therefore everything in my original code worked fine, excepting the memory leak..

Ok let me ask the question the other way around:

What is the correct code to load a bitmap into memory, get it's DC, release everything excepting the DC (which I use in the program) and when done release the DC, too.?