>
> Oh, I forgot one more thing for cleaning up the GDI:
> In Icon2Bitmap() you have this:
> ....
>
> Change to this:
>
Thanks. With that part I would have come back to You anyway. I am thinking about putting the declaration and cleanup in extra methods like I do with all the other DLL-Declarations. Then I would not need to do it with every call.
However... the SelectObject() stuff needs to be done right there otherwise the handles - or should I say API_Handles <s> - are out of scope