Yes. The debugger reveals that LoadImage is working fine. It's SelectObject that isn't.