Managing un-managed Resources
Yesterday Chuck posted a cool example of using GDI from .NET. One thing that was missing was the call to ReleaseDC. You should *always* call this when finished painting with a DC obtained via GetWindowDC. DeclareFunction ReleaseDC Lib“user32” (ByVal hwnd As IntPtr, ByVal dc As IntPtr) As Int32 So Chuck’s code on […]
Click here to read more »