Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: mfc xp style Pin
Paresh Chitte28-Sep-10 20:13
Paresh Chitte28-Sep-10 20:13 
QuestionAccessing a Variable Pin
T.RATHA KRISHNAN27-Sep-10 22:16
T.RATHA KRISHNAN27-Sep-10 22:16 
AnswerRe: Accessing a Variable Pin
Code-o-mat27-Sep-10 22:26
Code-o-mat27-Sep-10 22:26 
AnswerRe: Accessing a Variable Pin
CPallini27-Sep-10 22:32
mveCPallini27-Sep-10 22:32 
AnswerRe: Accessing a Variable Pin
bleedingfingers27-Sep-10 22:40
bleedingfingers27-Sep-10 22:40 
GeneralRe: Accessing a Variable Pin
T.RATHA KRISHNAN27-Sep-10 22:53
T.RATHA KRISHNAN27-Sep-10 22:53 
AnswerRe: Accessing a Variable Pin
AmbiguousName27-Sep-10 23:20
AmbiguousName27-Sep-10 23:20 
AnswerRe: Accessing a Variable Pin
Niklas L27-Sep-10 23:34
Niklas L27-Sep-10 23:34 
You want a class variable as opposed to an instance variable. A class variable in C++ is declared using the static keyword.

class A
{
protected:
    static int my_class_variable;
};


This variable will be shared among all instances of class A and its derived classes.

GeneralRe: Accessing a Variable Pin
T.RATHA KRISHNAN27-Sep-10 23:50
T.RATHA KRISHNAN27-Sep-10 23:50 
GeneralRe: Accessing a Variable Pin
bleedingfingers28-Sep-10 0:04
bleedingfingers28-Sep-10 0:04 
AnswerRe: Accessing a Variable Pin
bleedingfingers27-Sep-10 23:42
bleedingfingers27-Sep-10 23:42 
GeneralRe: Accessing a Variable Pin
Moak27-Sep-10 23:49
Moak27-Sep-10 23:49 
JokeRe: Accessing a Variable Pin
bleedingfingers28-Sep-10 0:03
bleedingfingers28-Sep-10 0:03 
GeneralRe: Accessing a Variable Pin
T.RATHA KRISHNAN28-Sep-10 0:38
T.RATHA KRISHNAN28-Sep-10 0:38 
QuestionWM_COPYDATA fails with error RPC_E_CANTCALLOUT_ININPUTSYNCCALL [modified] Pin
sashoalm27-Sep-10 21:15
sashoalm27-Sep-10 21:15 
QuestionMutex blocks CreateFileMapping Pin
Maxwell Chen27-Sep-10 20:52
Maxwell Chen27-Sep-10 20:52 
AnswerRe: Mutex blocks CreateFileMapping Pin
Code-o-mat27-Sep-10 22:46
Code-o-mat27-Sep-10 22:46 
GeneralRe: Mutex blocks CreateFileMapping Pin
Maxwell Chen27-Sep-10 22:54
Maxwell Chen27-Sep-10 22:54 
GeneralRe: Mutex blocks CreateFileMapping Pin
Code-o-mat27-Sep-10 23:04
Code-o-mat27-Sep-10 23:04 
GeneralRe: Mutex blocks CreateFileMapping Pin
Maxwell Chen27-Sep-10 23:05
Maxwell Chen27-Sep-10 23:05 
GeneralRe: Mutex blocks CreateFileMapping Pin
Code-o-mat27-Sep-10 23:17
Code-o-mat27-Sep-10 23:17 
GeneralRe: Mutex blocks CreateFileMapping Pin
Maxwell Chen27-Sep-10 23:32
Maxwell Chen27-Sep-10 23:32 
GeneralRe: Mutex blocks CreateFileMapping Pin
Code-o-mat27-Sep-10 23:57
Code-o-mat27-Sep-10 23:57 
GeneralRe: Mutex blocks CreateFileMapping Pin
Maxwell Chen28-Sep-10 0:04
Maxwell Chen28-Sep-10 0:04 
GeneralRe: Mutex blocks CreateFileMapping Pin
Code-o-mat28-Sep-10 0:04
Code-o-mat28-Sep-10 0:04 

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.