yah - before you use it, and after you're done, couninitialize
you can put in the WndMain routine (before window create/after message loop exit)
or in the main window WndProc (WM_CREATE/WM_DESTROY)
i prefer the WndMain method
if the window fails creation for some reason, WM_CREATE is executed, but WM_DESTROY is not