Click here to Skip to main content
15,925,868 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Windows Media Player Pin
Harshabhi19-Apr-06 6:38
Harshabhi19-Apr-06 6:38 
AnswerRe: Windows Media Player Pin
Stephen Hewitt19-Apr-06 13:46
Stephen Hewitt19-Apr-06 13:46 
QuestionRe: Windows Media Player Pin
Harshabhi20-Apr-06 7:09
Harshabhi20-Apr-06 7:09 
Questionproblem exporting static template data members, but not methods Pin
Marcello17-Apr-06 14:40
Marcello17-Apr-06 14:40 
AnswerRe: problem exporting static template data members, but not methods Pin
Maxwell Chen17-Apr-06 17:14
Maxwell Chen17-Apr-06 17:14 
GeneralRe: problem exporting static template data members, but not methods Pin
Stephen Hewitt17-Apr-06 19:56
Stephen Hewitt17-Apr-06 19:56 
GeneralRe: problem exporting static template data members, but not methods Pin
Maxwell Chen17-Apr-06 20:08
Maxwell Chen17-Apr-06 20:08 
AnswerRe: problem exporting static template data members, but not methods Pin
Branislav17-Apr-06 23:32
Branislav17-Apr-06 23:32 
A data member of a class can be declared static; be it in the public or private part of the class definition. Such a data member is created and initialized only once, in contrast to non-static data members, which are created again and again, for each separate object of the class. A static data member is created once: when the program starts executing. Nonetheless, it is still part of the class.
Static data members which are declared public are like `normal' global variables: they can be reached by all code of the program using their name, together with their class name and the scope resolution operator. This is illustrated in the following code fragment:

#include <iostream>

template <class t="">
class C {
public:
static int n;
};

The data member n is a private static variable. During the execution of the program, only one C::n exists, even though more than one object of the class C may exist. This data member could be inspected or altered by the constructor, destructor or by any other member function of the class C.
AnswerRe: problem exporting static template data members, but not methods Pin
Marcello18-Apr-06 9:53
Marcello18-Apr-06 9:53 
GeneralRe: problem exporting static template data members, but not methods Pin
Branislav18-Apr-06 18:53
Branislav18-Apr-06 18:53 
GeneralRe: problem exporting static template data members, but not methods Pin
Marcello21-Apr-06 11:32
Marcello21-Apr-06 11:32 
QuestionLow level operations to devices Pin
fvalerin17-Apr-06 14:02
fvalerin17-Apr-06 14:02 
AnswerRe: Low level operations to devices Pin
David Crow18-Apr-06 3:06
David Crow18-Apr-06 3:06 
GeneralRe: Low level operations to devices Pin
fvalerin18-Apr-06 4:44
fvalerin18-Apr-06 4:44 
GeneralRe: Low level operations to devices Pin
David Crow18-Apr-06 4:52
David Crow18-Apr-06 4:52 
GeneralRe: Low level operations to devices Pin
Marcello18-Apr-06 10:39
Marcello18-Apr-06 10:39 
GeneralRe: Low level operations to devices Pin
David Crow18-Apr-06 10:44
David Crow18-Apr-06 10:44 
GeneralRe: Low level operations to devices Pin
Marcello18-Apr-06 11:15
Marcello18-Apr-06 11:15 
Questionhow to change the color of title bar and its text , in dialog application Pin
Hannan Azam17-Apr-06 13:49
Hannan Azam17-Apr-06 13:49 
AnswerRe: how to change the color of title bar and its text , in dialog application Pin
includeh1017-Apr-06 16:21
includeh1017-Apr-06 16:21 
AnswerRe: how to change the color of title bar and its text , in dialog application Pin
Hamid_RT17-Apr-06 19:12
Hamid_RT17-Apr-06 19:12 
Questionweird error... please help Pin
picazo17-Apr-06 13:43
picazo17-Apr-06 13:43 
AnswerRe: weird error... please help Pin
Stephen Hewitt17-Apr-06 14:44
Stephen Hewitt17-Apr-06 14:44 
GeneralRe: weird error... please help Pin
picazo17-Apr-06 15:10
picazo17-Apr-06 15:10 
GeneralRe: weird error... please help Pin
Stephen Hewitt17-Apr-06 15:14
Stephen Hewitt17-Apr-06 15:14 

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.