Click here to Skip to main content
15,898,721 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: including vector header Pin
toxcct29-Nov-07 1:27
toxcct29-Nov-07 1:27 
GeneralRe: including vector header Pin
Schehaider_Aymen29-Nov-07 1:33
Schehaider_Aymen29-Nov-07 1:33 
GeneralRe: including vector header [modified] Pin
toxcct29-Nov-07 1:40
toxcct29-Nov-07 1:40 
GeneralRe: including vector header Pin
Nelek29-Nov-07 23:40
protectorNelek29-Nov-07 23:40 
GeneralRe: including vector header Pin
Jijo.Raj29-Nov-07 1:32
Jijo.Raj29-Nov-07 1:32 
GeneralRe: including vector header Pin
toxcct29-Nov-07 1:35
toxcct29-Nov-07 1:35 
GeneralRe: including vector header Pin
Schehaider_Aymen29-Nov-07 1:39
Schehaider_Aymen29-Nov-07 1:39 
GeneralRe: including vector header Pin
toxcct29-Nov-07 1:43
toxcct29-Nov-07 1:43 
because you're leading to name collisions.
your can confuse the compiler with 2 classes which have the same name, just because it doesn't know to search whether the std:: namespace, the glogal one, or another namespace you just import entierely.

it's commonly accepted to avoid the using namespace std declaration, but if you really need it, then don't do it in a header file (and worst in stdafx.h, because the entiere application includes it !!!).
prefer using namespace std inside shorter scopes like functions


GeneralRe: including vector header Pin
Schehaider_Aymen29-Nov-07 1:36
Schehaider_Aymen29-Nov-07 1:36 
GeneralRe: including vector header Pin
toxcct29-Nov-07 1:44
toxcct29-Nov-07 1:44 
GeneralRe: including vector header Pin
Schehaider_Aymen29-Nov-07 1:49
Schehaider_Aymen29-Nov-07 1:49 
Questionconvert from 'wchar_t *' to 'LPCSTR' Pin
neha.agarwal2729-Nov-07 0:34
neha.agarwal2729-Nov-07 0:34 
QuestionWhy do you need it? Pin
CPallini29-Nov-07 0:56
mveCPallini29-Nov-07 0:56 
AnswerRe: convert from 'wchar_t *' to 'LPCSTR' Pin
David Crow29-Nov-07 3:26
David Crow29-Nov-07 3:26 
QuestionISAPI redirection filter in MFC Pin
Jhony george29-Nov-07 0:31
Jhony george29-Nov-07 0:31 
Questionconvert bmp to pdf Pin
keyto29-Nov-07 0:19
keyto29-Nov-07 0:19 
AnswerRe: convert bmp to pdf Pin
Nelek29-Nov-07 0:28
protectorNelek29-Nov-07 0:28 
GeneralRe: convert bmp to pdf Pin
keyto29-Nov-07 0:52
keyto29-Nov-07 0:52 
GeneralRe: convert bmp to pdf Pin
Nelek29-Nov-07 1:33
protectorNelek29-Nov-07 1:33 
QuestionRinjdael Algorithm Pin
nimsrav29-Nov-07 0:11
nimsrav29-Nov-07 0:11 
AnswerTry to post your question to the right forum Pin
CPallini29-Nov-07 0:19
mveCPallini29-Nov-07 0:19 
AnswerRe: Rinjdael Algorithm Pin
_Pinux_29-Nov-07 2:19
_Pinux_29-Nov-07 2:19 
QuestionCurrent focus Pin
Maynka28-Nov-07 23:57
Maynka28-Nov-07 23:57 
AnswerRe: Current focus Pin
CPallini29-Nov-07 0:15
mveCPallini29-Nov-07 0:15 
AnswerRe: Current focus Pin
Jhony george29-Nov-07 0:34
Jhony george29-Nov-07 0:34 

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.