Click here to Skip to main content
15,922,894 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRAS Dial through Port Pin
PSLoh17-Mar-08 22:19
PSLoh17-Mar-08 22:19 
GeneralOpen button in MS office file Open dialog Pin
Nitheesh George17-Mar-08 20:27
Nitheesh George17-Mar-08 20:27 
GeneralLocal Variable Address off by 4 bytes Pin
ForNow17-Mar-08 20:18
ForNow17-Mar-08 20:18 
QuestionRe: Local Variable Address off by 4 bytes Pin
Maxwell Chen17-Mar-08 20:56
Maxwell Chen17-Mar-08 20:56 
GeneralRe: Local Variable Address off by 4 bytes Pin
ForNow17-Mar-08 21:54
ForNow17-Mar-08 21:54 
GeneralRe: Local Variable Address off by 4 bytes Pin
Mark Salsbery18-Mar-08 8:21
Mark Salsbery18-Mar-08 8:21 
GeneralRe: Local Variable Address off by 4 bytes Pin
ForNow18-Mar-08 12:40
ForNow18-Mar-08 12:40 
GeneralRe: Local Variable Address off by 4 bytes Pin
Mark Salsbery18-Mar-08 13:07
Mark Salsbery18-Mar-08 13:07 
hmmm....I'm not sure why you are expecting a certain esp value.

If there was a compiler bug with this, then I bet millions of apps
would be affected, and I, for one, couldn't trust local character arrays at all. Smile | :)

The implementor of the compiler is free to use the stack (or whatever other memory it wants to use)
for local variables in any way, as long as when we use the proper C++ syntax, we get access to the data
in a way the C++ specification states we should.

That aside, do you have a complete function example you can post along with
what you're seeing and what you're expecting to see with the esp register?
I'd be happy to look at it Smile | :)

Mark

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Local Variable Address off by 4 bytes Pin
ForNow18-Mar-08 14:59
ForNow18-Mar-08 14:59 
GeneralRe: Local Variable Address off by 4 bytes Pin
ForNow18-Mar-08 15:54
ForNow18-Mar-08 15:54 
GeneralRe: Local Variable Address off by 4 bytes Pin
Mark Salsbery18-Mar-08 16:13
Mark Salsbery18-Mar-08 16:13 
GeneralRe: Local Variable Address off by 4 bytes Pin
ForNow18-Mar-08 18:32
ForNow18-Mar-08 18:32 
QuestionRe: Local Variable Address off by 4 bytes Pin
Mark Salsbery18-Mar-08 19:40
Mark Salsbery18-Mar-08 19:40 
GeneralRe: Local Variable Address off by 4 bytes Pin
Mark Salsbery19-Mar-08 4:39
Mark Salsbery19-Mar-08 4:39 
GeneralRe: Local Variable Address off by 4 bytes Pin
ForNow19-Mar-08 14:39
ForNow19-Mar-08 14:39 
GeneralYou were right !!!!! Pin
ForNow19-Mar-08 17:35
ForNow19-Mar-08 17:35 
Generalurgent Pin
john563217-Mar-08 20:00
john563217-Mar-08 20:00 
GeneralRe: urgent Pin
rp_suman17-Mar-08 20:39
rp_suman17-Mar-08 20:39 
GeneralRe: urgent Pin
john563217-Mar-08 20:42
john563217-Mar-08 20:42 
GeneralRe: urgent Pin
rp_suman17-Mar-08 21:55
rp_suman17-Mar-08 21:55 
GeneralRe: urgent Pin
David Crow18-Mar-08 3:55
David Crow18-Mar-08 3:55 
GeneralRe: urgent Pin
Naveen17-Mar-08 21:21
Naveen17-Mar-08 21:21 
GeneralRe: urgent Pin
john563217-Mar-08 22:50
john563217-Mar-08 22:50 
GeneralRe: urgent Pin
Naveen17-Mar-08 23:29
Naveen17-Mar-08 23:29 
GeneralRe: urgent Pin
john563218-Mar-08 0:08
john563218-Mar-08 0:08 

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.