Click here to Skip to main content
15,887,930 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Strange strcpy problem Pin
Michael Dunn13-May-07 6:18
sitebuilderMichael Dunn13-May-07 6:18 
QuestionMapping a drive into memory. Pin
Killer22512-May-07 23:23
Killer22512-May-07 23:23 
AnswerRe: Mapping a drive into memory. Pin
Hans Dietrich13-May-07 0:10
mentorHans Dietrich13-May-07 0:10 
AnswerRe: Mapping a drive into memory. Pin
Michael Dunn13-May-07 6:20
sitebuilderMichael Dunn13-May-07 6:20 
Questionvc++ related to xml Pin
biswajit nayak12-May-07 21:46
biswajit nayak12-May-07 21:46 
AnswerRe: vc++ related to xml Pin
Cedric Moonen12-May-07 22:01
Cedric Moonen12-May-07 22:01 
GeneralRe: vc++ related to xml Pin
Hans Dietrich13-May-07 0:12
mentorHans Dietrich13-May-07 0:12 
AnswerRe: vc++ related to xml Pin
Hamid_RT13-May-07 1:21
Hamid_RT13-May-07 1:21 
AnswerRe: vc++ related to xml Pin
#realJSOP13-May-07 3:57
mve#realJSOP13-May-07 3:57 
QuestionOne line miss problem Pin
hsuch12-May-07 19:26
hsuch12-May-07 19:26 
QuestionRe: One line miss problem Pin
bob1697212-May-07 20:06
bob1697212-May-07 20:06 
AnswerRe: One line miss problem Pin
hsuch12-May-07 20:49
hsuch12-May-07 20:49 
GeneralRe: One line miss problem Pin
bob1697212-May-07 23:29
bob1697212-May-07 23:29 
GeneralRe: One line miss problem Pin
hsuch13-May-07 7:43
hsuch13-May-07 7:43 
QuestionDistinguish Thread State(running or suspend) Pin
A_Fa12-May-07 19:03
A_Fa12-May-07 19:03 
AnswerRe: Distinguish Thread State(running or suspend) Pin
Mark Salsbery13-May-07 6:23
Mark Salsbery13-May-07 6:23 
QuestionVC++ 6.0 and VSS integration registry entries - again Pin
Vaclav_12-May-07 14:04
Vaclav_12-May-07 14:04 
QuestionVisual Styles - Edit Control Pin
Meh!12-May-07 13:44
Meh!12-May-07 13:44 
AnswerRe: Visual Styles - Edit Control Pin
Perspx13-May-07 0:15
Perspx13-May-07 0:15 
QuestionMonitor open files on a share Pin
Vadim Tabakman12-May-07 13:35
Vadim Tabakman12-May-07 13:35 
AnswerRe: Monitor open files on a share Pin
Vadim Tabakman12-May-07 16:47
Vadim Tabakman12-May-07 16:47 
GeneralRe: Monitor open files on a share Pin
erajsri13-May-07 22:32
erajsri13-May-07 22:32 
QuestionCorrect usage of reinterpret_cast and static_cast Pin
ComplexLifeForm12-May-07 10:03
ComplexLifeForm12-May-07 10:03 
AnswerRe: Correct usage of reinterpret_cast and static_cast Pin
John R. Shaw12-May-07 10:58
John R. Shaw12-May-07 10:58 
AnswerRe: Correct usage of reinterpret_cast and static_cast Pin
bob1697212-May-07 12:06
bob1697212-May-07 12:06 
psychedelic_fur wrote:
2. Use C style cast to remove the warning as
c = (char)i;
Again I do not want to use this option


Just out of curiosity, why is this option undesired in your situation? From the little I've seen in Java and C#, it appears this is the common form. You understand what it will do in most contexts (especially this one) and it's easier to type and read. You can search for, and find them just as easy in code.

I've never bought the arguments for why the C++ style is superior as no text or article has ever offered a solid affirmative that was not easily rebutted. The examples offered always seem a bit contrived and not so commonplace. I've used this style since the early 90's and it works just fine.

I'm sure someone will pounce on my post with some obscure way to misuse or abuse it but that would be expected as most of the C++ purists are a bit fanatic.

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.