Click here to Skip to main content
16,008,075 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: performance question? Pin
User 988517-Jan-03 5:34
User 988517-Jan-03 5:34 
GeneralRe: performance question? Pin
Tim Smith17-Jan-03 5:41
Tim Smith17-Jan-03 5:41 
GeneralRe: performance question? Pin
Nemanja Trifunovic17-Jan-03 5:50
Nemanja Trifunovic17-Jan-03 5:50 
GeneralRe: performance question? Pin
Tim Smith17-Jan-03 6:14
Tim Smith17-Jan-03 6:14 
GeneralRe: performance question? Pin
Joaquín M López Muñoz17-Jan-03 5:45
Joaquín M López Muñoz17-Jan-03 5:45 
GeneralRe: performance question? Pin
User 988517-Jan-03 6:18
User 988517-Jan-03 6:18 
QuestionHow to add element to the desktop's menu? Pin
julych17-Jan-03 3:48
julych17-Jan-03 3:48 
Generalis this VC++ compiler bug, or my bug ? :) Pin
rrrado17-Jan-03 3:48
rrrado17-Jan-03 3:48 
I have this piece of code :

CString tmp;
int x = 1;

tmp.Format("%d,%d,%d",++x,++x,++x);
AfxMessageBox(tmp);

x = 1;
tmp.Format("%d,%d,%d",x++,x++,x++);
AfxMessageBox(tmp);


I always thought that output of this will look like this :
4,3,2 and 3,2,1.

But when i compile that in debug mode (no optimalisations) :
4,3,2 and 1,1,1

Release mode :
4,4,4 and 1,1,1

What's wrong ? Even if my assumptions was incorrect, i think that such trivial code should work by the same way in debug and release version.
Who knows the answer ? Smile | :)

(I use VC++ 6.0 with some service pack, i think Unsure | :~



rrrado
GeneralRe: is this VC++ compiler bug, or my bug ? :) Pin
jhwurmbach17-Jan-03 4:07
jhwurmbach17-Jan-03 4:07 
GeneralRe: is this VC++ compiler bug, or my bug ? :) Pin
rrrado17-Jan-03 4:11
rrrado17-Jan-03 4:11 
GeneralRe: is this VC++ compiler bug, or my bug ? :) Pin
jhwurmbach17-Jan-03 4:16
jhwurmbach17-Jan-03 4:16 
GeneralRe: is this VC++ compiler bug, or my bug ? :) Pin
Joaquín M López Muñoz17-Jan-03 4:57
Joaquín M López Muñoz17-Jan-03 4:57 
GeneralRe: is this VC++ compiler bug, or my bug ? :) Pin
Tim Smith17-Jan-03 5:02
Tim Smith17-Jan-03 5:02 
GeneralRe: is this VC++ compiler bug, or my bug ? :) Pin
Mike Nordell17-Jan-03 23:43
Mike Nordell17-Jan-03 23:43 
GeneralWindow positon when maxed Pin
S O S17-Jan-03 2:18
S O S17-Jan-03 2:18 
GeneralRe: Window positon when maxed Pin
peterchen17-Jan-03 3:03
peterchen17-Jan-03 3:03 
GeneralRe: Window positon when maxed Pin
S O S17-Jan-03 3:41
S O S17-Jan-03 3:41 
GeneralRe: Window positon when maxed Pin
peterchen17-Jan-03 4:40
peterchen17-Jan-03 4:40 
GeneralRe: Window positon when maxed Pin
S O S18-Jan-03 0:19
S O S18-Jan-03 0:19 
GeneralRe: Window positon when maxed Pin
peterchen18-Jan-03 0:44
peterchen18-Jan-03 0:44 
QuestionAnyone encoutered this error ???? Pin
BlackRider17-Jan-03 2:12
BlackRider17-Jan-03 2:12 
AnswerRe: Anyone encoutered this error? YES. Pin
Bartosz Bien17-Jan-03 2:18
Bartosz Bien17-Jan-03 2:18 
GeneralRe: Anyone encoutered this error? YES. Pin
BlackRider17-Jan-03 3:00
BlackRider17-Jan-03 3:00 
GeneralRe: Anyone encoutered this error? YES. Pin
Jim A. Johnson17-Jan-03 5:44
Jim A. Johnson17-Jan-03 5:44 
QuestionHow to retrieve the object path from a shortcut? Pin
Abin17-Jan-03 1:22
Abin17-Jan-03 1:22 

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.