Click here to Skip to main content
15,867,453 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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.
GeneralRe: Correct usage of reinterpret_cast and static_cast Pin
John R. Shaw12-May-07 12:36
John R. Shaw12-May-07 12:36 
GeneralRe: Correct usage of reinterpret_cast and static_cast Pin
bob1697212-May-07 13:20
bob1697212-May-07 13:20 
GeneralRe: Correct usage of reinterpret_cast and static_cast Pin
Stephen Hewitt13-May-07 15:00
Stephen Hewitt13-May-07 15:00 
GeneralRe: Correct usage of reinterpret_cast and static_cast Pin
John R. Shaw14-May-07 15:12
John R. Shaw14-May-07 15:12 
GeneralRe: Correct usage of reinterpret_cast and static_cast Pin
ComplexLifeForm12-May-07 21:11
ComplexLifeForm12-May-07 21:11 
GeneralRe: Correct usage of reinterpret_cast and static_cast Pin
bob1697213-May-07 2:07
bob1697213-May-07 2:07 
AnswerRe: Correct usage of reinterpret_cast and static_cast Pin
Michael Dunn13-May-07 6:24
sitebuilderMichael Dunn13-May-07 6:24 
GeneralRe: Correct usage of reinterpret_cast and static_cast Pin
Stephen Hewitt13-May-07 14:31
Stephen Hewitt13-May-07 14:31 
GeneralRe: Correct usage of reinterpret_cast and static_cast Pin
bob1697213-May-07 19:41
bob1697213-May-07 19:41 
GeneralRe: Correct usage of reinterpret_cast and static_cast Pin
Stephen Hewitt13-May-07 19:48
Stephen Hewitt13-May-07 19:48 
GeneralRe: Correct usage of reinterpret_cast and static_cast Pin
Stephen Hewitt13-May-07 16:46
Stephen Hewitt13-May-07 16:46 
AnswerRe: Correct usage of reinterpret_cast and static_cast Pin
Stephen Hewitt13-May-07 15:04
Stephen Hewitt13-May-07 15:04 
QuestionVS build/run problem. [modified] Pin
CodeGoose12-May-07 9:01
CodeGoose12-May-07 9:01 
AnswerRe: VS build/run problem. Pin
Hans Dietrich12-May-07 10:55
mentorHans Dietrich12-May-07 10:55 
GeneralRe: VS build/run problem. Pin
CodeGoose12-May-07 13:31
CodeGoose12-May-07 13:31 
AnswerRe: VS build/run problem. Pin
prasad_som12-May-07 19:33
prasad_som12-May-07 19:33 
AnswerRe: VS build/run problem. Pin
Gary R. Wheeler13-May-07 2:37
Gary R. Wheeler13-May-07 2:37 

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.