Tech Support > Microsoft Windows > Development Resources > splash screen problem
splash screen problem
Posted by cosmin on January 31st, 2007


Hi friends,

I have a plug-in dll that must to be load in to one program. The
problem is that i want to display a splash screen but i dont know
where are the error :-(.

nThread = ::CreateThread (NULL, 0,(LPTHREAD_START_ROUTINE)runProcess,
NULL, 0,NULL );
CloseHandle(nThread);
......

DWORD WINAPI runProcess (LPVOID Param)
{
CSplash *splash = new CSplash();
splash->SetTransparentColor(RGB(128,128,128));
splash->SetBitmap(hBINTERFATA);
splash->ShowSplash();
Sleep(9000);
splash->CloseSplash();
delete(splash);
return 0;
}

CSplash class i have found on the internet and seems that its work in
a normal exe application. I have put the same cone in a window
application and there it works, but in my application doesnt appear
and my plug-in doesn't display nothing !!!.

Kind regards,
Cosmin

Posted by Sten Westerback \(MVP SDK\) on January 31st, 2007



"cosmin" <jeeko.jeeko@gmail.com> wrote in message
news:1170240693.311130.228640@m58g2000cwm.googlegr oups.com...
What's the difference between "a window application" and "my application"?
Is your app a Console app? Or are you missing a message loop in your app
after the CreateThread() which you got in the "a window application"?
Of course, you should also verify that splash is valid etc...

- Sten



Posted by cosmin on February 1st, 2007


No, i found the problem in the CSplash class, there is a bitmap that
is loading from resource and in my case the bitmap was null.

Thanks


Sten Westerback (MVP SDK) a scris:


Similar Posts