Click here to Skip to main content
15,921,212 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: here is one memory leak Pin
Christian Graus3-Mar-02 9:02
protectorChristian Graus3-Mar-02 9:02 
GeneralRe: Thanks i got the solution Pin
5-Mar-02 4:08
suss5-Mar-02 4:08 
GeneralRe: Thanks i got the solution Pin
5-Mar-02 4:08
suss5-Mar-02 4:08 
GeneralVSS Header comments Pin
Darren Schroeder3-Mar-02 4:39
Darren Schroeder3-Mar-02 4:39 
GeneralRe: VSS Header comments Pin
Anders Molin3-Mar-02 4:43
professionalAnders Molin3-Mar-02 4:43 
Questionusing namespace std; <-- is evil? Pin
Travis D. Mathison3-Mar-02 4:28
Travis D. Mathison3-Mar-02 4:28 
AnswerRe: using namespace std; <-- is evil? Pin
Todd Smith3-Mar-02 4:41
Todd Smith3-Mar-02 4:41 
AnswerRe: using namespace std; <-- is evil? Pin
Tim Smith3-Mar-02 5:00
Tim Smith3-Mar-02 5:00 
If you want to use them, go right ahead.

However, there are some cases where I wouldn't use them at ALL. Never ever ever ever ever. (Atleast in the global scope)

If you are creating a library to be used by others, NEVER expect that there has been a using issued. Never issue one yourself (excluding the rare case where you are adding namespaces to an existing library where you don't want to break existing code). Always reference the classes fully (i.e. std::vector).

The idea is that your library should never have any side effects during compilation. Issuing a using might cause other strange problems not expected by the user of your class library.

Tim Smith

I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
AnswerRe: using namespace std; <-- is evil? Pin
Travis D. Mathison3-Mar-02 5:07
Travis D. Mathison3-Mar-02 5:07 
AnswerRe: using namespace std; <-- is evil? Pin
Felix Cho3-Mar-02 12:37
Felix Cho3-Mar-02 12:37 
GeneralRe: using namespace std; <-- is evil? Pin
Christian Graus3-Mar-02 12:57
protectorChristian Graus3-Mar-02 12:57 
GeneralRe: using namespace std; <-- is evil? Pin
Tim Smith3-Mar-02 13:11
Tim Smith3-Mar-02 13:11 
GeneralRe: using namespace std; <-- is evil? Pin
Christian Graus3-Mar-02 13:48
protectorChristian Graus3-Mar-02 13:48 
GeneralRe: using namespace std; <-- is evil? Pin
Tim Smith3-Mar-02 13:57
Tim Smith3-Mar-02 13:57 
GeneralRe: using namespace std; <-- is evil? Pin
Christian Graus3-Mar-02 15:24
protectorChristian Graus3-Mar-02 15:24 
GeneralRe: using namespace std; <-- is evil? Pin
Felix Cho4-Mar-02 17:38
Felix Cho4-Mar-02 17:38 
GeneralSend To IrDA printer in Pocket PC Pin
Mesut3-Mar-02 1:18
Mesut3-Mar-02 1:18 
GeneralSimple question Pin
John Cruz3-Mar-02 0:50
John Cruz3-Mar-02 0:50 
GeneralRe: Simple question Pin
Rama Krishna Vavilala3-Mar-02 1:55
Rama Krishna Vavilala3-Mar-02 1:55 
GeneralRe: Simple question Pin
Michael P Butler3-Mar-02 9:55
Michael P Butler3-Mar-02 9:55 
GeneralAn amazingly puzzling ATL enigma! Pin
Nish Nishant2-Mar-02 23:10
sitebuilderNish Nishant2-Mar-02 23:10 
GeneralRe: An amazingly puzzling ATL enigma! Pin
Christian Graus2-Mar-02 23:31
protectorChristian Graus2-Mar-02 23:31 
GeneralRe: An amazingly puzzling ATL enigma! Pin
Mazdak2-Mar-02 23:35
Mazdak2-Mar-02 23:35 
GeneralRe: An amazingly puzzling ATL enigma! Pin
Nish Nishant2-Mar-02 23:54
sitebuilderNish Nishant2-Mar-02 23:54 
GeneralRe: An amazingly puzzling ATL enigma! Pin
Mazdak3-Mar-02 0:24
Mazdak3-Mar-02 0:24 

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.