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

C / C++ / MFC

 
GeneralRe: Start application at specific time Pin
Pranit Kothari16-May-11 1:12
Pranit Kothari16-May-11 1:12 
GeneralRe: Start application at specific time Pin
ShilpiP16-May-11 1:46
ShilpiP16-May-11 1:46 
GeneralRe: Start application at specific time Pin
Pranit Kothari16-May-11 2:02
Pranit Kothari16-May-11 2:02 
GeneralRe: Start application at specific time Pin
ShilpiP16-May-11 2:11
ShilpiP16-May-11 2:11 
GeneralRe: Start application at specific time Pin
Pranit Kothari16-May-11 2:34
Pranit Kothari16-May-11 2:34 
GeneralRe: Start application at specific time Pin
ShilpiP16-May-11 2:55
ShilpiP16-May-11 2:55 
AnswerRe: Start application at specific time Pin
Rhuros15-May-11 22:46
professionalRhuros15-May-11 22:46 
QuestionStatic class members Pin
csrss15-May-11 5:37
csrss15-May-11 5:37 
Ok, i just cannot get it. How can i nitialize static class members? I got such situation:

class myClass
{
    private:
        static myClass *pThis;
    public:
    .................
};

Now i am trying to initialize pThis to "this" so i can use it in some static methods, like threads and so.
If i am trying to initialize it in constructor, compiler says that pThis is unresolved. Ok then, i am trying to initialize it to NULL outside a class, like this:

myClass *myClass::pThis = NULL;

Now linker says that pThis is already defined in myClass.obj. What am i doing wrong?
Thanks
011011010110000101100011011010000110100101101110
0110010101110011

AnswerRe: Static class members Pin
Luc Pattyn15-May-11 5:46
sitebuilderLuc Pattyn15-May-11 5:46 
GeneralRe: Static class members Pin
csrss15-May-11 6:02
csrss15-May-11 6:02 
AnswerRe: Static class members Pin
Richard MacCutchan15-May-11 7:13
mveRichard MacCutchan15-May-11 7:13 
GeneralRe: Static class members Pin
csrss16-May-11 5:43
csrss16-May-11 5:43 
AnswerRe: Static class members Pin
Niklas L16-May-11 0:42
Niklas L16-May-11 0:42 
GeneralRe: Static class members Pin
csrss16-May-11 5:46
csrss16-May-11 5:46 
GeneralRe: Static class members Pin
Stefan_Lang17-May-11 0:48
Stefan_Lang17-May-11 0:48 
GeneralRe: Static class members Pin
csrss17-May-11 5:38
csrss17-May-11 5:38 
GeneralRe: Static class members Pin
Stefan_Lang17-May-11 6:18
Stefan_Lang17-May-11 6:18 
AnswerRe: Static class members Pin
Stefan_Lang16-May-11 3:03
Stefan_Lang16-May-11 3:03 
GeneralRe: Static class members Pin
csrss16-May-11 5:52
csrss16-May-11 5:52 
GeneralRe: Static class members [modified] Pin
Stefan_Lang16-May-11 6:11
Stefan_Lang16-May-11 6:11 
QuestionCreating a window without focus [modified] Pin
csrss15-May-11 2:25
csrss15-May-11 2:25 
AnswerRe: Creating a window without focus Pin
Luc Pattyn15-May-11 2:45
sitebuilderLuc Pattyn15-May-11 2:45 
GeneralRe: Creating a window without focus Pin
csrss15-May-11 2:50
csrss15-May-11 2:50 
AnswerRe: Creating a window without focus Pin
Alain Rist15-May-11 3:43
Alain Rist15-May-11 3:43 
GeneralRe: Creating a window without focus Pin
csrss15-May-11 4:57
csrss15-May-11 4:57 

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.