>
>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
Maybe you can think of something (i.e: using properties). But it depends on the situation. Sometimes you can work with one DC only, sometimes two DC or even more than three DC. So I'll leave that part to you as the author :)
Herman