Click here to Skip to main content
16,015,218 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: General MFC C++ question What does :: any class or object on the left hand side mean Pin
Rajesh R Subramanian25-Jun-10 21:06
professionalRajesh R Subramanian25-Jun-10 21:06 
GeneralRe: General MFC C++ question What does :: any class or object on the left hand side mean Pin
ForNow26-Jun-10 16:59
ForNow26-Jun-10 16:59 
GeneralRe: General MFC C++ question What does :: any class or object on the left hand side mean Pin
Tim Craig26-Jun-10 17:55
Tim Craig26-Jun-10 17:55 
GeneralRe: General MFC C++ question What does :: any class or object on the left hand side mean Pin
Niklas L25-Jun-10 20:55
Niklas L25-Jun-10 20:55 
GeneralRe: General MFC C++ question What does :: any class or object on the left hand side mean Pin
ForNow26-Jun-10 16:36
ForNow26-Jun-10 16:36 
AnswerRe: General MFC C++ question What does :: any class or object on the left hand side mean Pin
Rajesh R Subramanian25-Jun-10 9:12
professionalRajesh R Subramanian25-Jun-10 9:12 
GeneralRe: General MFC C++ question What does :: any class or object on the left hand side mean Pin
ForNow26-Jun-10 17:01
ForNow26-Jun-10 17:01 
GeneralRe: General MFC C++ question What does :: any class or object on the left hand side mean Pin
Tim Craig26-Jun-10 22:41
Tim Craig26-Jun-10 22:41 
Only in the example he cited. Normally, it's used where you have a class method with the same name as a global function, actually the same signature and you want to call the global one rather than the member. Another reason, is just to make sure it's clear you meant to call the global one to make it easy on maintenance programmers. If there's no ambiguity, you really don't need to use the scope resolution operator as the compiler can tell what you meant, the global function is the only match for the call. The flip side is that if you wanted to show you really meant to call the internal method, you could prefix it with this-> to show your intention although it isn't necessary.
Once you agree to clans, tribes, governments...you've opted for socialism. The rest is just details.

QuestionKickoff towards OLE Pin
Code-o-mat25-Jun-10 1:41
Code-o-mat25-Jun-10 1:41 
AnswerRe: Kickoff towards OLE Pin
Richard MacCutchan25-Jun-10 2:33
mveRichard MacCutchan25-Jun-10 2:33 
GeneralRe: Kickoff towards OLE [modified] Pin
Code-o-mat25-Jun-10 2:58
Code-o-mat25-Jun-10 2:58 
GeneralRe: Kickoff towards OLE Pin
Richard MacCutchan25-Jun-10 3:14
mveRichard MacCutchan25-Jun-10 3:14 
GeneralRe: Kickoff towards OLE Pin
Code-o-mat25-Jun-10 6:03
Code-o-mat25-Jun-10 6:03 
AnswerRe: Kickoff towards OLE Pin
Aescleal25-Jun-10 6:44
Aescleal25-Jun-10 6:44 
GeneralRe: Kickoff towards OLE Pin
Tim Craig25-Jun-10 9:50
Tim Craig25-Jun-10 9:50 
GeneralRe: Kickoff towards OLE Pin
Code-o-mat25-Jun-10 9:57
Code-o-mat25-Jun-10 9:57 
GeneralRe: Kickoff towards OLE Pin
Stephen Hewitt28-Jun-10 17:28
Stephen Hewitt28-Jun-10 17:28 
Questionstream object Pin
MKC00225-Jun-10 1:04
MKC00225-Jun-10 1:04 
AnswerRe: stream object Pin
Mohan Ramachandra25-Jun-10 1:10
Mohan Ramachandra25-Jun-10 1:10 
GeneralRe: stream object Pin
MKC00225-Jun-10 1:40
MKC00225-Jun-10 1:40 
GeneralRe: stream object Pin
Cedric Moonen25-Jun-10 1:41
Cedric Moonen25-Jun-10 1:41 
AnswerRe: stream object Pin
Cedric Moonen25-Jun-10 1:43
Cedric Moonen25-Jun-10 1:43 
AnswerRe: stream object Pin
Richard MacCutchan25-Jun-10 2:36
mveRichard MacCutchan25-Jun-10 2:36 
AnswerRe: stream object Pin
Eugen Podsypalnikov25-Jun-10 3:19
Eugen Podsypalnikov25-Jun-10 3:19 
QuestionComboBox sorting Pin
raju_shiva24-Jun-10 21:47
raju_shiva24-Jun-10 21:47 

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.