Click here to Skip to main content
15,901,284 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: i have a problem, how to solve it ? Pin
nenfa27-Nov-09 15:54
nenfa27-Nov-09 15:54 
GeneralRe: i have a problem, how to solve it ? [modified] Pin
JohnCz26-Nov-09 20:03
JohnCz26-Nov-09 20:03 
GeneralRe: i have a problem, how to solve it ? Pin
JohnCz26-Nov-09 21:36
JohnCz26-Nov-09 21:36 
QuestionWhy there is difference in outputs when i change the compiler? Pin
Nilesh Hamane25-Nov-09 20:26
Nilesh Hamane25-Nov-09 20:26 
AnswerRe: Why there is difference in outputs when i change the compiler? Pin
Code-o-mat25-Nov-09 20:40
Code-o-mat25-Nov-09 20:40 
AnswerRe: Why there is difference in outputs when i change the compiler? Pin
Nilesh Hamane25-Nov-09 22:16
Nilesh Hamane25-Nov-09 22:16 
GeneralRe: Why there is difference in outputs when i change the compiler? Pin
Code-o-mat25-Nov-09 22:29
Code-o-mat25-Nov-09 22:29 
GeneralRe: Why there is difference in outputs when i change the compiler? Pin
Luc Pattyn26-Nov-09 7:16
sitebuilderLuc Pattyn26-Nov-09 7:16 
Correct. There are holes in the definition of the C language. IIRC the official specification even holds an appendix with issues that the compiler designer has to solve, and has to publish how he did solve them. One of those issues is the order in which side effects may occur, e.g. does i=i++; modify i or not?

Your defense against such things is very easy:
1) don't create statements that are ambiguous. In your example, split the line in a couple of lines and use temporary variables, so the parameters get evaluated in the order you choose.
2) or switch to an unambiguous language, such as Java and C#

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


QuestionHow to hide a baloon tip in a tray icon after some seconds? Pin
Erik25-Nov-09 10:45
Erik25-Nov-09 10:45 
AnswerRe: How to hide a baloon tip in a tray icon after some seconds? Pin
Rozis25-Nov-09 14:24
Rozis25-Nov-09 14:24 
AnswerRe: How to hide a baloon tip in a tray icon after some seconds? Pin
Naveen25-Nov-09 16:32
Naveen25-Nov-09 16:32 
QuestionHow can I install Platform SDK for Visual Studio 6.0 on XP SP3? Pin
Erik25-Nov-09 8:54
Erik25-Nov-09 8:54 
AnswerRe: How can I install Platform SDK for Visual Studio 6.0 on XP SP3? Pin
Stefan7625-Nov-09 10:11
Stefan7625-Nov-09 10:11 
GeneralRe: How can I install Platform SDK for Visual Studio 6.0 on XP SP3? Pin
Michael Schubert25-Nov-09 11:39
Michael Schubert25-Nov-09 11:39 
GeneralRe: How can I install Platform SDK for Visual Studio 6.0 on XP SP3? Pin
Rajesh R Subramanian25-Nov-09 18:56
professionalRajesh R Subramanian25-Nov-09 18:56 
GeneralRe: How can I install Platform SDK for Visual Studio 6.0 on XP SP3? Pin
Stefan7626-Nov-09 2:11
Stefan7626-Nov-09 2:11 
GeneralRe: How can I install Platform SDK for Visual Studio 6.0 on XP SP3? Pin
Rajesh R Subramanian26-Nov-09 5:22
professionalRajesh R Subramanian26-Nov-09 5:22 
AnswerRe: How can I install Platform SDK for Visual Studio 6.0 on XP SP3? Pin
Michael Schubert25-Nov-09 11:33
Michael Schubert25-Nov-09 11:33 
GeneralRe: How can I install Platform SDK for Visual Studio 6.0 on XP SP3? Pin
Erik25-Nov-09 11:58
Erik25-Nov-09 11:58 
Questionhow to make winapi control "edit" transparent? Pin
nenfa25-Nov-09 5:07
nenfa25-Nov-09 5:07 
AnswerRe: how to make winapi control "edit" transparent? Pin
Richard MacCutchan25-Nov-09 6:53
mveRichard MacCutchan25-Nov-09 6:53 
AnswerRe: how to make winapi control "edit" transparent? Pin
«_Superman_»25-Nov-09 9:26
professional«_Superman_»25-Nov-09 9:26 
GeneralRe: how to make winapi control "edit" transparent? Pin
nenfa25-Nov-09 19:09
nenfa25-Nov-09 19:09 
QuestionMFC print preview???? Pin
kk_Kevin25-Nov-09 2:09
kk_Kevin25-Nov-09 2:09 
AnswerRe: MFC print preview???? Pin
Nelek30-Nov-09 1:35
protectorNelek30-Nov-09 1:35 

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.