Thanks, I did search for it but my mind went blank and I didn't search specifically for "splash screen". I found a nice plugin for dev c++ which is what I use atm.
There is one more problem I'm having, I've been trying some stuff with keybd_event to try and make it close the spash screen when esc is pressed, but It keeps returning even though the button hasn't been pressed or released. Can you help?
this is the function for returning a value to signal if the button has been pressed and depressed (I used code from msdn and modified it)
int check_esc(BOOL bState)
{
BYTE keyState[256];
GetKeyboardState((LPBYTE)&keyState);
if( (bState && !(keyState[VK_ESCAPE] & 1)) ||
(!bState && (keyState[VK_ESCAPE] & 1)) )
{
keybd_event(VK_ESCAPE, 0x1B, 0, 0);
keybd_event(VK_ESCAPE, 0x1B, KEYEVENTF_KEYUP, 0);
return 76;
}
}
and here's the code that tells it to return the value and exit:
if (check_esc(TRUE) == 76)
{
//exit code here...
}
the problem is, It continues to return 76 even though the button hasn't been pressed or depressed....how do I fix this, or is there a better/shorter way to do this?