Click here to Skip to main content
15,904,023 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Class Bascis Question... Pin
Stephen Hewitt6-May-06 3:54
Stephen Hewitt6-May-06 3:54 
GeneralRe: Class Bascis Question... Pin
Axter6-May-06 16:43
professionalAxter6-May-06 16:43 
GeneralRe: Class Bascis Question... Pin
Stephen Hewitt6-May-06 18:32
Stephen Hewitt6-May-06 18:32 
GeneralRe: Class Bascis Question... Pin
Maxwell Chen6-May-06 19:16
Maxwell Chen6-May-06 19:16 
GeneralRe: Class Bascis Question... Pin
Phil C6-May-06 20:12
Phil C6-May-06 20:12 
AnswerRe: Class Bascis Question... Pin
Maxwell Chen6-May-06 20:44
Maxwell Chen6-May-06 20:44 
GeneralRe: Class Bascis Question... Pin
Axter7-May-06 1:05
professionalAxter7-May-06 1:05 
GeneralRe: Class Bascis Question... Pin
Maxwell Chen7-May-06 2:02
Maxwell Chen7-May-06 2:02 
Axter wrote:
Microsoft is allowed to use leading underscore, because they're considered the implementation.

Leading underscores are reserved for the implementation, which is a cobination of the compiler and the OS.
So Microsoft is allowed to use the leading underscore, but IAW the standard, your own code should not.

One thing Microsoft is doing wrong, is using a leading underscore name followed by a lowercase name that can intrude all namespaces.

Since _tcstol is a macro, it can enter all namespaces.
If Microsoft use _Tcstol instead, then the name is allowed to intrude into all namespaces.


Section 17.4.3.1.2 in ISO/IEC 14882:2003

1. Certain sets of names and function signatures are always reserved to the implementation:

-- Each name that contains a double underscore (__) or begins with an underscore followed by an uppercase letter (2.11) is reserved to the implementation for any use.

-- Each name that begins with an underscore is reserved to the implementation for use as a name in the global namespace.



Maxwell Chen
GeneralRe: Class Bascis Question... Pin
Axter7-May-06 5:53
professionalAxter7-May-06 5:53 
GeneralRe: Class Bascis Question... Pin
Maxwell Chen7-May-06 6:22
Maxwell Chen7-May-06 6:22 
GeneralRe: Class Bascis Question... Pin
Axter7-May-06 1:20
professionalAxter7-May-06 1:20 
QuestionRe: Class Bascis Question... Pin
Maxwell Chen7-May-06 2:08
Maxwell Chen7-May-06 2:08 
AnswerRe: Class Bascis Question... Pin
Axter7-May-06 5:57
professionalAxter7-May-06 5:57 
GeneralRe: Class Bascis Question... Pin
Maxwell Chen7-May-06 6:08
Maxwell Chen7-May-06 6:08 
Questionhow to get ip address of my own system Pin
noumanzaidi6-May-06 1:39
noumanzaidi6-May-06 1:39 
AnswerRe: how to get ip address of my own system Pin
Hamid_RT6-May-06 1:48
Hamid_RT6-May-06 1:48 
AnswerRe: how to get ip address of my own system Pin
Mila0257-May-06 21:19
Mila0257-May-06 21:19 
Questionerror(plz give the solution for this) Pin
Reddyb6-May-06 1:26
Reddyb6-May-06 1:26 
AnswerRe: error(plz give the solution for this) Pin
Hamid_RT6-May-06 1:57
Hamid_RT6-May-06 1:57 
AnswerRe: error(plz give the solution for this) Pin
Cedric Moonen6-May-06 1:58
Cedric Moonen6-May-06 1:58 
AnswerRe: error(plz give the solution for this) Pin
guestcat6-May-06 2:17
guestcat6-May-06 2:17 
AnswerRe: error(plz give the solution for this) Pin
Hamid_RT6-May-06 4:50
Hamid_RT6-May-06 4:50 
Questiondll to source Pin
Try6-May-06 1:20
Try6-May-06 1:20 
AnswerRe: dll to source Pin
Milton Karimbekallil6-May-06 1:42
Milton Karimbekallil6-May-06 1:42 
AnswerRe: dll to source Pin
Chris Losinger6-May-06 16:12
professionalChris Losinger6-May-06 16:12 

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.