Click here to Skip to main content
16,005,734 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Pointer Syntax Pin
toxcct22-Jun-06 6:09
toxcct22-Jun-06 6:09 
GeneralRe: Pointer Syntax Pin
Jay0322-Jun-06 6:24
Jay0322-Jun-06 6:24 
GeneralRe: Pointer Syntax Pin
toxcct22-Jun-06 6:27
toxcct22-Jun-06 6:27 
GeneralRe: Pointer Syntax Pin
David Crow22-Jun-06 6:27
David Crow22-Jun-06 6:27 
AnswerRe: Pointer Syntax Pin
Zac Howland22-Jun-06 6:21
Zac Howland22-Jun-06 6:21 
GeneralRe: Pointer Syntax Pin
Jay0322-Jun-06 6:36
Jay0322-Jun-06 6:36 
GeneralRe: Pointer Syntax Pin
Chris Losinger22-Jun-06 6:43
professionalChris Losinger22-Jun-06 6:43 
GeneralRe: Pointer Syntax [modified] Pin
Zac Howland22-Jun-06 6:58
Zac Howland22-Jun-06 6:58 
Ah, I don't have the ng codebase on me ... the RTI-s codebase shouldn't be too much different though (that is what we use where I work ... at least for now -- a new contract is coming that may require the use of ng).

Typically, anytime you see m_ in front of a variable name, it means it is a member variable. When you see ms_ it means it is a static member variable. To initialize static member variables, you have to place a line somewhere in the implementation (typically at the top of the .cpp file) that looks like the following:

VariableType ClassName::ms_VariableName = SomeValue;

The ObjectRoot:: in front of the ms_numInstances states that it is a member of the ObjectRoot class (it could also mean a namespace, but in this case, I happen to know it is a class).

Do a grep on the ObjectRoot declaration and you should see where those variables are declared (or, if you are using a decent IDE, click the variable and tell the IDE to go to the declaration). You should see them as static members of the ObjectRoot class in the RTI namespace.

If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac

-- modified at 12:59 Thursday 22nd June, 2006
GeneralRe: Pointer Syntax Pin
Jay0322-Jun-06 7:02
Jay0322-Jun-06 7:02 
GeneralRe: Pointer Syntax Pin
Zac Howland22-Jun-06 7:03
Zac Howland22-Jun-06 7:03 
GeneralRe: Pointer Syntax Pin
Jay0322-Jun-06 7:13
Jay0322-Jun-06 7:13 
GeneralRe: Pointer Syntax Pin
Zac Howland22-Jun-06 7:18
Zac Howland22-Jun-06 7:18 
GeneralRe: Pointer Syntax Pin
Jay0322-Jun-06 8:39
Jay0322-Jun-06 8:39 
GeneralRe: Pointer Syntax Pin
Zac Howland22-Jun-06 9:16
Zac Howland22-Jun-06 9:16 
QuestionAbout Windows OS Pin
Max++22-Jun-06 4:56
Max++22-Jun-06 4:56 
AnswerRe: About Windows OS Pin
toxcct22-Jun-06 5:05
toxcct22-Jun-06 5:05 
GeneralRe: About Windows OS Pin
Zac Howland22-Jun-06 5:21
Zac Howland22-Jun-06 5:21 
GeneralRe: About Windows OS Pin
toxcct22-Jun-06 5:24
toxcct22-Jun-06 5:24 
GeneralRe: About Windows OS Pin
Zac Howland22-Jun-06 5:35
Zac Howland22-Jun-06 5:35 
QuestionRe: About Windows OS Pin
David Crow22-Jun-06 5:59
David Crow22-Jun-06 5:59 
JokeRe: About Windows OS Pin
toxcct22-Jun-06 6:05
toxcct22-Jun-06 6:05 
GeneralRe: About Windows OS Pin
Zac Howland22-Jun-06 6:15
Zac Howland22-Jun-06 6:15 
GeneralRe: About Windows OS Pin
Nemanja Trifunovic22-Jun-06 7:45
Nemanja Trifunovic22-Jun-06 7:45 
GeneralRe: About Windows OS Pin
Zac Howland22-Jun-06 9:22
Zac Howland22-Jun-06 9:22 
GeneralRe: About Windows OS Pin
Nemanja Trifunovic22-Jun-06 9:48
Nemanja Trifunovic22-Jun-06 9:48 

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.