Click here to Skip to main content
15,923,789 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to find windows system directory Pin
Michael P Butler3-Aug-04 0:49
Michael P Butler3-Aug-04 0:49 
GeneralRe: how to find windows system directory Pin
peterchen3-Aug-04 2:06
peterchen3-Aug-04 2:06 
AnswerRe: how to fing windows system directory Pin
Anonymous3-Aug-04 1:44
Anonymous3-Aug-04 1:44 
GeneralRe: how to fing windows system directory Pin
David Crow3-Aug-04 3:57
David Crow3-Aug-04 3:57 
AnswerRe: how to fing windows system directory Pin
parths3-Aug-04 1:45
parths3-Aug-04 1:45 
AnswerRe: how to fing windows system directory Pin
Anonymous3-Aug-04 1:46
Anonymous3-Aug-04 1:46 
Generalscrolling up Pin
V.2-Aug-04 22:41
professionalV.2-Aug-04 22:41 
GeneralDelayed Single Instance Creation Pin
peterchen2-Aug-04 22:34
peterchen2-Aug-04 22:34 
I'm looking for a generic/convenient solution to the following common pattern:
X * GetX()
{
  static X * x = NULL;
  if (x == NULL)
    x = CreateX(); // soome custom function
  return x;
}


I know hot to make it threadsafe, etc, but would love to find something "well tested", threadsafe, and convenient.

Any links?




we are here to help each other get through this thing, whatever it is Vonnegut jr.

sighist || Agile Programming | doxygen

GeneralRe: Delayed Single Instance Creation Pin
Ravi Bhavnani3-Aug-04 1:46
professionalRavi Bhavnani3-Aug-04 1:46 
GeneralRe: Delayed Single Instance Creation Pin
peterchen3-Aug-04 2:02
peterchen3-Aug-04 2:02 
GeneralRe: Delayed Single Instance Creation Pin
Ravi Bhavnani3-Aug-04 2:11
professionalRavi Bhavnani3-Aug-04 2:11 
GeneralWindows 98 incompatibility Pin
sirtimid2-Aug-04 22:09
sirtimid2-Aug-04 22:09 
GeneralRe: Windows 98 incompatibility Pin
Jaime Stuardo3-Aug-04 8:01
Jaime Stuardo3-Aug-04 8:01 
GeneralStructure of a signed short Pin
Joel Holdsworth2-Aug-04 21:58
Joel Holdsworth2-Aug-04 21:58 
GeneralRe: Structure of a signed short Pin
peterchen2-Aug-04 22:52
peterchen2-Aug-04 22:52 
GeneralRe: Structure of a signed short Pin
Joel Holdsworth2-Aug-04 23:38
Joel Holdsworth2-Aug-04 23:38 
GeneralRe: Structure of a signed short Pin
Henry miller3-Aug-04 4:30
Henry miller3-Aug-04 4:30 
GeneralRe: Structure of a signed short Pin
peterchen3-Aug-04 12:32
peterchen3-Aug-04 12:32 
GeneralIE Crashing Pin
Abhi Lahare2-Aug-04 21:51
Abhi Lahare2-Aug-04 21:51 
GeneralRe: IE Crashing Pin
jmkhael2-Aug-04 22:21
jmkhael2-Aug-04 22:21 
GeneralRe: IE Crashing Pin
Abhi Lahare2-Aug-04 23:53
Abhi Lahare2-Aug-04 23:53 
GeneralRe: IE Crashing Pin
jmkhael3-Aug-04 0:17
jmkhael3-Aug-04 0:17 
GeneralRe: IE Crashing Pin
Abhi Lahare3-Aug-04 1:08
Abhi Lahare3-Aug-04 1:08 
GeneralRe: IE Crashing Pin
jmkhael3-Aug-04 1:22
jmkhael3-Aug-04 1:22 
GeneralRe: IE Crashing Pin
Abhi Lahare3-Aug-04 1:33
Abhi Lahare3-Aug-04 1:33 

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.