Click here to Skip to main content
15,900,662 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: EnableMenuItem() does not make menu item gray??? Pin
will138322-Oct-02 4:35
will138322-Oct-02 4:35 
GeneralRe: EnableMenuItem() does not make menu item gray??? Pin
Roger Allen22-Oct-02 5:36
Roger Allen22-Oct-02 5:36 
GeneralRe: EnableMenuItem() does not make menu item gray??? Pin
Ravi Bhavnani22-Oct-02 7:18
professionalRavi Bhavnani22-Oct-02 7:18 
GeneralUnable to open HELP from Visual studio environment Pin
ssirisha22-Oct-02 3:54
ssirisha22-Oct-02 3:54 
GeneralRe: Unable to open HELP from Visual studio environment Pin
l a u r e n22-Oct-02 7:31
l a u r e n22-Oct-02 7:31 
GeneralRe: Unable to open HELP from Visual studio environment Pin
José Luis Sogorb23-Oct-02 7:16
José Luis Sogorb23-Oct-02 7:16 
GeneralCursor Change by an Out-of-Process COM Server Pin
Anonymous22-Oct-02 3:28
Anonymous22-Oct-02 3:28 
GeneralADO Binding (compile errors) Pin
esapp42022-Oct-02 3:23
esapp42022-Oct-02 3:23 
GeneralI am an IDIOT Pin
esapp42022-Oct-02 5:58
esapp42022-Oct-02 5:58 
GeneralRe: I am an IDIOT Pin
Nitron22-Oct-02 7:59
Nitron22-Oct-02 7:59 
GeneralsndPlaySound Pin
Jh322-Oct-02 3:11
Jh322-Oct-02 3:11 
QuestionHow to convert a string to XML format Pin
François22-Oct-02 3:01
François22-Oct-02 3:01 
AnswerRe: How to convert a string to XML format Pin
benjymous22-Oct-02 3:05
benjymous22-Oct-02 3:05 
AnswerRe: How to convert a string to XML format Pin
Daniel Turini22-Oct-02 3:15
Daniel Turini22-Oct-02 3:15 
AnswerRe: How to convert a string to XML format Pin
Stephane Rodriguez.22-Oct-02 3:21
Stephane Rodriguez.22-Oct-02 3:21 
GeneralVS make files Pin
will138322-Oct-02 2:58
will138322-Oct-02 2:58 
Generalstring Pin
wong190722-Oct-02 2:25
wong190722-Oct-02 2:25 
GeneralRe: string Pin
Nitron22-Oct-02 8:10
Nitron22-Oct-02 8:10 
GeneralRe: string Pin
valikac22-Oct-02 10:24
valikac22-Oct-02 10:24 
Generalsplash screen not disappearing on win98 Pin
ns22-Oct-02 2:19
ns22-Oct-02 2:19 
GeneralRe: splash screen not disappearing on win98 Pin
benjymous22-Oct-02 2:57
benjymous22-Oct-02 2:57 
GeneralRe: splash screen not disappearing on win98 Pin
ns22-Oct-02 3:36
ns22-Oct-02 3:36 
GeneralRe: splash screen not disappearing on win98 Pin
benjymous22-Oct-02 4:02
benjymous22-Oct-02 4:02 
Ahh, so I guess you've currently got something like

MyClass::MyFunction()
{
  CSplashScreen Splash;  // the splashscreen object
  

  ..do your startup processing here..
  

}


The Splash object should automatically get deleted at the end of the function, when it goes out of scope, but for some reason it isn't.

Instead, try changing it to:

MyClass::MyFunction()
{
  CSplashScreen* pSplash;  // the splashscreen object
  pSplash = new CSplashScreen;
  

  ..do your startup processing here..


  delete pSplash;
}


(I.e. you now have full control over the creation and destruction of the splash screen object, which should force it to close when you want it to)

--
Help me! I'm turning into a grapefruit!

GeneralRe: splash screen not disappearing on win98 Pin
ns22-Oct-02 4:16
ns22-Oct-02 4:16 
Questionany helpful links for this? Pin
ns22-Oct-02 2:12
ns22-Oct-02 2:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.