The documentation says:
You are responsible for deleting the GDI bitmap and the GDI palette. However, you should not delete the GDI bitmap or the GDI palette until after the GDI+ Bitmap object is deleted or goes out of scope.
My code says:
Code:
Bitmap bmpPdf(hBitmap, NULL);

     ....

bmpPdf.~Bitmap();
DeleteObject(hBitmap);
I'm wondering:
- Is calling the destructor explicitly the equivalent of the object going out of scope?
- Is this acceptable practise?
- Is this common as I haven't seen it before?

Thanks.