Click here to Skip to main content
15,889,403 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: When to use "inline"? Pin
Ed Gadziemski19-Aug-02 12:38
professionalEd Gadziemski19-Aug-02 12:38 
AnswerRe: When to use "inline"? Pin
Le centriste19-Aug-02 12:56
Le centriste19-Aug-02 12:56 
GeneralRe: When to use "inline"? Pin
Daniel Lohmann19-Aug-02 23:34
Daniel Lohmann19-Aug-02 23:34 
AnswerRe: When to use "inline"? Pin
Shog919-Aug-02 12:59
sitebuilderShog919-Aug-02 12:59 
AnswerRe: When to use "inline"? Pin
Michael Dunn19-Aug-02 17:09
sitebuilderMichael Dunn19-Aug-02 17:09 
GeneralInitialization order of globals Pin
Todd Smith19-Aug-02 11:15
Todd Smith19-Aug-02 11:15 
GeneralRe: Initialization order of globals Pin
Tomasz Sowinski19-Aug-02 11:23
Tomasz Sowinski19-Aug-02 11:23 
GeneralRe: Initialization order of globals Pin
Wes Jones19-Aug-02 11:23
Wes Jones19-Aug-02 11:23 
there's no reliable way for this...
one thing you can do is to make your debug object a Singleton
and then call it's CDebugClass::Instance() method to initialize the instance in a point in your code where you know it'll be initialized before other objects, such as CMyApp::InitInstance if using MFC.

class CDebugClass
{
 ...
 static CDebugClass & Instance();
 ...
};

CDebugClass & CDebugClass::Instance()
{
   static CDebugClass theInstance;
   return theInstance;
}



-Wes


Sonork ID 100.14017 wtheronjones
GeneralRe: Initialization order of globals Pin
Daniel Lohmann19-Aug-02 23:46
Daniel Lohmann19-Aug-02 23:46 
Generalquick question about CStrings Pin
ns19-Aug-02 10:54
ns19-Aug-02 10:54 
GeneralRe: quick question about CStrings Pin
Michael Dunn19-Aug-02 10:55
sitebuilderMichael Dunn19-Aug-02 10:55 
Generalthank you! Pin
ns19-Aug-02 11:08
ns19-Aug-02 11:08 
GeneralRe: quick question about CStrings Pin
Christian Graus19-Aug-02 12:34
protectorChristian Graus19-Aug-02 12:34 
GeneralRe: quick question about CStrings Pin
Ancient Dragon19-Aug-02 15:18
Ancient Dragon19-Aug-02 15:18 
GeneralRe: quick question about CStrings Pin
Christian Graus19-Aug-02 16:53
protectorChristian Graus19-Aug-02 16:53 
GeneralRe: quick question about CStrings Pin
Ancient Dragon19-Aug-02 17:38
Ancient Dragon19-Aug-02 17:38 
GeneralRe: quick question about CStrings Pin
Christian Graus19-Aug-02 17:47
protectorChristian Graus19-Aug-02 17:47 
GeneralRe: quick question about CStrings Pin
Ancient Dragon19-Aug-02 18:11
Ancient Dragon19-Aug-02 18:11 
GeneralRe: quick question about CStrings Pin
Christian Graus19-Aug-02 18:25
protectorChristian Graus19-Aug-02 18:25 
GeneralRe: quick question about CStrings Pin
Ancient Dragon19-Aug-02 23:29
Ancient Dragon19-Aug-02 23:29 
GeneralRe: quick question about CStrings Pin
Christian Graus20-Aug-02 0:35
protectorChristian Graus20-Aug-02 0:35 
GeneralRe: quick question about CStrings Pin
Chris Losinger19-Aug-02 16:56
professionalChris Losinger19-Aug-02 16:56 
GeneralRe: quick question about CStrings Pin
Christian Graus19-Aug-02 17:32
protectorChristian Graus19-Aug-02 17:32 
GeneralRe: quick question about CStrings Pin
Chris Losinger19-Aug-02 17:41
professionalChris Losinger19-Aug-02 17:41 
GeneralRe: quick question about CStrings Pin
Christian Graus19-Aug-02 18:03
protectorChristian Graus19-Aug-02 18:03 

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.