Click here to Skip to main content
15,898,744 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to specify path in sources file - MFC build on WDK Pin
Member 386968221-Jan-08 19:56
Member 386968221-Jan-08 19:56 
QuestionHow can open makefile by Visual studio 2005 (VC8) Pin
hanlei000000000921-Jan-08 18:34
hanlei000000000921-Jan-08 18:34 
AnswerRe: How can open makefile by Visual studio 2005 (VC8) Pin
GeorgeVN21-Jan-08 19:38
GeorgeVN21-Jan-08 19:38 
AnswerRe: How can open makefile by Visual studio 2005 (VC8) Pin
Mark Salsbery22-Jan-08 6:41
Mark Salsbery22-Jan-08 6:41 
GeneralFile Attributes Pin
john563221-Jan-08 18:28
john563221-Jan-08 18:28 
GeneralRe: File Attributes Pin
Stephen Hewitt21-Jan-08 18:49
Stephen Hewitt21-Jan-08 18:49 
GeneralRe: File Attributes Pin
Rajesh R Subramanian21-Jan-08 21:09
professionalRajesh R Subramanian21-Jan-08 21:09 
Generalwhat's going on here ? [modified] Pin
Chris Losinger21-Jan-08 14:58
professionalChris Losinger21-Jan-08 14:58 
what's the order of evaluation here ?

int res = fn(ar[i++] | ar[i++]);


should it be:

1. temp1 = ar[i]
2. inc i
3. temp2 = ar[i]
4. inc i
5. return fn(temp1 | temp2)

or:

1. temp1 = ar[i]
2. temp2 = ar[i]
3. inc i
4. inc i
5. return fn(temp1 | temp2)

this is the code i'm actually, using
res = fn((fn2(ar[i++]) << 4) | (fn2(ar[i++]) & 0x0f));


... but that's essentially the same, right ?

i get the first behavior from VC6 debug and release and from VS05, debug. in VS05 release, i get the second behavior. unfortunately, i haven't been able to duplicate it in a small test app - in my test apps, i get the behavior in all debug builds, and the second for all release builds.

which is right? or is this one of those undefined situations ?


modified on Monday, January 21, 2008 9:21:00 PM

QuestionRe: what's going on here ? Pin
David Crow21-Jan-08 15:50
David Crow21-Jan-08 15:50 
GeneralRe: what's going on here ? Pin
Stephen Hewitt21-Jan-08 17:04
Stephen Hewitt21-Jan-08 17:04 
GeneralRe: what's going on here ? [modified] Pin
SandipG 21-Jan-08 23:31
SandipG 21-Jan-08 23:31 
GeneralReading in a DIB Raw AVI video Pin
bankai12321-Jan-08 13:10
bankai12321-Jan-08 13:10 
GeneralRe: Reading in a DIB Raw AVI video Pin
Chris Losinger21-Jan-08 15:18
professionalChris Losinger21-Jan-08 15:18 
QuestionGet caret position from text window on IE Pin
tal111121-Jan-08 11:28
tal111121-Jan-08 11:28 
GeneralRe: Get caret position from text window on IE Pin
bob1697221-Jan-08 14:51
bob1697221-Jan-08 14:51 
GeneralRe: Get caret position from text window on IE Pin
Stephen Hewitt21-Jan-08 17:33
Stephen Hewitt21-Jan-08 17:33 
GeneralRe: Get caret position from text window on IE Pin
tal111121-Jan-08 22:00
tal111121-Jan-08 22:00 
QuestionHow to fiquire in Leap Year Pin
Larry Mills Sr21-Jan-08 8:40
Larry Mills Sr21-Jan-08 8:40 
AnswerRe: How to fiquire in Leap Year Pin
Wes Aday21-Jan-08 9:11
professionalWes Aday21-Jan-08 9:11 
AnswerRe: How to fiquire in Leap Year Pin
bob1697221-Jan-08 9:22
bob1697221-Jan-08 9:22 
GeneralRe: How to fiquire in Leap Year Pin
Larry Mills Sr21-Jan-08 13:57
Larry Mills Sr21-Jan-08 13:57 
GeneralRe: How to fiquire in Leap Year Pin
David Crow21-Jan-08 15:57
David Crow21-Jan-08 15:57 
QuestionLogout/Login or Fast User Switch via code? Pin
Barry Etter21-Jan-08 7:56
Barry Etter21-Jan-08 7:56 
AnswerRe: Logout/Login or Fast User Switch via code? Pin
Karismatic21-Jan-08 17:26
Karismatic21-Jan-08 17:26 
Generalfast qsort implementation Pin
Mohammad A Gdeisat21-Jan-08 7:48
Mohammad A Gdeisat21-Jan-08 7:48 

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.