Click here to Skip to main content
15,888,968 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Any effect on :: Pin
Rajesh R Subramanian27-Oct-08 22:52
professionalRajesh R Subramanian27-Oct-08 22:52 
GeneralRe: Any effect on :: Pin
toxcct28-Oct-08 2:06
toxcct28-Oct-08 2:06 
AnswerRe: Any effect on :: Pin
Roger Stoltz27-Oct-08 23:05
Roger Stoltz27-Oct-08 23:05 
QuestionRe: Any effect on :: Pin
CodingLover27-Oct-08 23:40
CodingLover27-Oct-08 23:40 
AnswerRe: Any effect on :: Pin
Roger Stoltz27-Oct-08 23:58
Roger Stoltz27-Oct-08 23:58 
AnswerRe: Any effect on :: Pin
James R. Twine28-Oct-08 0:31
James R. Twine28-Oct-08 0:31 
AnswerRe: Any effect on :: Pin
Rajesh R Subramanian28-Oct-08 0:56
professionalRajesh R Subramanian28-Oct-08 0:56 
AnswerRe: Any effect on :: Pin
toxcct28-Oct-08 2:04
toxcct28-Oct-08 2:04 
CodingLover wrote:
Why is that?


no need to use it when there is no ambiguity. unless you want to make the code perfectly readable.

If the compiler has many definitions of the same identifier, then if you don't use the scope operator, the identifier in the current scope will be used. if not found there, then it will search in the namespaces declared to be currently in use (using namespace directive).
To tell the compiler that you want to use the global scope identifier, then you have to prepend it with ::...


GeneralRe: Any effect on :: Pin
CPallini27-Oct-08 23:49
mveCPallini27-Oct-08 23:49 
AnswerRe: Any effect on :: Pin
David Crow28-Oct-08 6:16
David Crow28-Oct-08 6:16 
AnswerRe: Any effect on :: Pin
Michael Dunn28-Oct-08 20:35
sitebuilderMichael Dunn28-Oct-08 20:35 
Questionerror while complie idl in Visual studio 2005 Pin
ptr_Electron27-Oct-08 20:33
ptr_Electron27-Oct-08 20:33 
AnswerRe: error while complie idl in Visual studio 2005 Pin
Roger Stoltz27-Oct-08 22:33
Roger Stoltz27-Oct-08 22:33 
GeneralRe: error while complie idl in Visual studio 2005 Pin
ptr_Electron27-Oct-08 22:44
ptr_Electron27-Oct-08 22:44 
AnswerRe: error while complie idl in Visual studio 2005 Pin
Roger Stoltz27-Oct-08 22:59
Roger Stoltz27-Oct-08 22:59 
GeneralRe: error while complie idl in Visual studio 2005 Pin
Peter Weyzen28-Oct-08 8:50
Peter Weyzen28-Oct-08 8:50 
QuestionRe: error while complie idl in Visual studio 2005 Pin
Roger Stoltz28-Oct-08 9:21
Roger Stoltz28-Oct-08 9:21 
QuestionCreating Dll files with multiple header and source files Pin
ajorge200827-Oct-08 6:17
ajorge200827-Oct-08 6:17 
QuestionRe: Creating Dll files with multiple header and source files Pin
Mark Salsbery27-Oct-08 6:29
Mark Salsbery27-Oct-08 6:29 
AnswerRe: Creating Dll files with multiple header and source files Pin
ajorge200827-Oct-08 6:32
ajorge200827-Oct-08 6:32 
GeneralRe: Creating Dll files with multiple header and source files Pin
Mark Salsbery27-Oct-08 6:40
Mark Salsbery27-Oct-08 6:40 
AnswerRe: Creating Dll files with multiple header and source files Pin
Roger Stoltz27-Oct-08 6:31
Roger Stoltz27-Oct-08 6:31 
GeneralRe: Creating Dll files with multiple header and source files Pin
ajorge200827-Oct-08 6:45
ajorge200827-Oct-08 6:45 
AnswerRe: Creating Dll files with multiple header and source files Pin
Roger Stoltz27-Oct-08 7:03
Roger Stoltz27-Oct-08 7:03 
QuestionCDocManager::DoPromptFileName(...) error Pin
yellowine27-Oct-08 4:58
yellowine27-Oct-08 4:58 

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.