Click here to Skip to main content
15,892,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: which directory to use to put shared dlls? Pin
Roger Stoltz28-Oct-08 1:53
Roger Stoltz28-Oct-08 1:53 
QuestionAny effect on :: Pin
CodingLover27-Oct-08 22:44
CodingLover27-Oct-08 22:44 
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 
   It prevents a same-name and same-signature class member from being called by accident.

   For example, if you are working in a class that has a member SetWindowText( HWND, LPCTSTR ), but you want to call the Win32 (or global) version of it, you would use ::SetWindowText( hWnd, _T( "Your Text" );.  Otherwise, you would call the class' version of the function.

   Calling API functions like that also protects you from future changes - if you have code in a class that calls SetWindowText(...) and in the future someone adds a member function to the class (or its base) with the same signature and recompiles your code, your older code would start calling the newer method.  This may or may not be what you want, so you can "future-proof" your code by using the global namespace operator.

   Peace!

-=- James
Please rate this message - let me know if I helped or not!<hr></hr>If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles



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 
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 

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.