Click here to Skip to main content
15,897,718 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GUI Leaks Pin
Christian Graus18-Nov-02 12:38
protectorChristian Graus18-Nov-02 12:38 
GeneralSaving a tree control Pin
Russell Thorburn18-Nov-02 11:23
sussRussell Thorburn18-Nov-02 11:23 
GeneralRe: Saving a tree control Pin
Joaquín M López Muñoz18-Nov-02 11:30
Joaquín M López Muñoz18-Nov-02 11:30 
GeneralDirectX problem Pin
Selevercin18-Nov-02 11:19
Selevercin18-Nov-02 11:19 
GeneralRe: DirectX problem Pin
Paul M Watt18-Nov-02 13:29
mentorPaul M Watt18-Nov-02 13:29 
GeneralSubtle bug with static members... Pin
Jamie Hale18-Nov-02 10:54
Jamie Hale18-Nov-02 10:54 
GeneralRe: Subtle bug with static members... Pin
Christian Graus18-Nov-02 11:05
protectorChristian Graus18-Nov-02 11:05 
GeneralRe: Subtle bug with static members... Pin
Jamie Hale18-Nov-02 11:10
Jamie Hale18-Nov-02 11:10 
Perhaps my example was poor. Smile | :)

Yes, that would solve the problem I posted. What I actually want to do is this:

class First {
	static char *szName;
};

char *First::szName = "First";

class Second {
	static char *szName;
};

char *Second::szName = "Second";


class User {
	static char *aszNames[];
};

char *User::aszNames[] = {First::szName, Second::szName};


The names are essentially constants, but the initialization order is still undefined. Frown | :(

J

May the bear never have cause to eat you.

GeneralRe: Subtle bug with static members... Pin
Christian Graus19-Nov-02 10:08
protectorChristian Graus19-Nov-02 10:08 
GeneralRe: Subtle bug with static members... Pin
Jamie Hale18-Nov-02 11:05
Jamie Hale18-Nov-02 11:05 
GeneralRe: Subtle bug with static members... [corrected] Pin
Joaquín M López Muñoz18-Nov-02 11:06
Joaquín M López Muñoz18-Nov-02 11:06 
GeneralRe: Subtle bug with static members... [corrected] Pin
Jamie Hale18-Nov-02 11:11
Jamie Hale18-Nov-02 11:11 
GeneralRe: Subtle bug with static members... [corrected] Pin
Joaquín M López Muñoz18-Nov-02 11:19
Joaquín M López Muñoz18-Nov-02 11:19 
GeneralMessagebox and Manifest Pin
S van Leent18-Nov-02 10:48
S van Leent18-Nov-02 10:48 
GeneralRe: Messagebox and Manifest Pin
EVILkos13-Dec-09 2:31
EVILkos13-Dec-09 2:31 
GeneralCustom shaped dialogs Pin
Dean Michaud18-Nov-02 10:18
Dean Michaud18-Nov-02 10:18 
GeneralRe: Custom shaped dialogs Pin
Navin18-Nov-02 10:34
Navin18-Nov-02 10:34 
GeneralRe: Custom shaped dialogs Pin
Dean Michaud18-Nov-02 10:45
Dean Michaud18-Nov-02 10:45 
GeneralRe: Custom shaped dialogs Pin
Michael Dunn18-Nov-02 11:18
sitebuilderMichael Dunn18-Nov-02 11:18 
GeneralRe: Custom shaped dialogs Pin
Atlantys19-Nov-02 3:07
Atlantys19-Nov-02 3:07 
GeneralAdding MFC to a non-MFC project Pin
Dave_18-Nov-02 10:03
Dave_18-Nov-02 10:03 
GeneralRe: Adding MFC to a non-MFC project Pin
Navin18-Nov-02 10:37
Navin18-Nov-02 10:37 
GeneralRe: Adding MFC to a non-MFC project Pin
Bill Wilson18-Nov-02 13:11
Bill Wilson18-Nov-02 13:11 
QuestionIs the field EMPTY ? Pin
Hadi Rezaee18-Nov-02 8:21
Hadi Rezaee18-Nov-02 8:21 
GeneralCListBox FindString Pin
Gary Kirkham18-Nov-02 8:17
Gary Kirkham18-Nov-02 8:17 

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.