Quote Originally Posted by novacain View Post
You have 2 HWND variables called hSplashWnd.

The hSplashWnd that gets the valid HWND has limited scope (the WinMain) and the global one you use to try and show the splash screen is not initialised or ever given a value.

PS

SelectObject(hMemoryDC, (HGDIOBJ)hSplashBMP);

This is possibly creating a GDI memory leak, depending on your compiler.

You should also cast to the exact type of GDI object (ie HBITMAP)

Thanks a lot.

I could not see the problem of the two variables called hSplashWnd. In respect to the casting part, I do not know if it was necessary I am using Dev-c++ but in any any case I changed it to your suggestion.

Thanks again.