Click here to Skip to main content
15,921,276 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CWebBrowser2::Navigate() Pin
Shivaji Patil9-Nov-06 20:10
professionalShivaji Patil9-Nov-06 20:10 
Questionwhat's the CALLBACK Pin
Shi Zhu9-Nov-06 16:24
Shi Zhu9-Nov-06 16:24 
AnswerRe: what's the CALLBACK Pin
Christian Graus9-Nov-06 16:26
protectorChristian Graus9-Nov-06 16:26 
AnswerRe: what's the CALLBACK Pin
Bram van Kampen9-Nov-06 17:24
Bram van Kampen9-Nov-06 17:24 
AnswerRe: what's the CALLBACK Pin
Hamid_RT9-Nov-06 18:26
Hamid_RT9-Nov-06 18:26 
QuestionStack Pointer Bounds Pin
Bram van Kampen9-Nov-06 16:23
Bram van Kampen9-Nov-06 16:23 
AnswerRe: Stack Pointer Bounds Pin
Stephen Hewitt9-Nov-06 16:29
Stephen Hewitt9-Nov-06 16:29 
GeneralRe: Stack Pointer Bounds Pin
Bram van Kampen9-Nov-06 17:20
Bram van Kampen9-Nov-06 17:20 
I Meant, maybe there is an API somehere that does this in a Microsoft Approved documented way, rather than the kludge I wrote to get the allowable range of ESP. It has all to do with a custom version of longjmp, which saves away a portion of the stack before it 'jumps'. Later on, after many function calls on the cut down stack, the portion of stack is retrieved is put back.If all goes well (an there are many reasons why it should not), a bit of gerrymandering of the various registers will cause the saved process to resume where it left off. The above is ofcourse a gross simplification, we have all sorts of things to consider, starting with global variables.

In order to trap the worst of errors, it would be handy to be able to do a sanity check on the proposed value for ESP before you take the jump back. What I wrote sofar works quite well, amazingly well actually, all things considered, but, it will end up as a minor(and thankfully well hidden) part of an API for third party users. In a situation like that I feel that belts, braces, and all rescue gear available would be recommended to be in place.

Hence my request


LateNightsInNewry

GeneralRe: Stack Pointer Bounds Pin
Stephen Hewitt9-Nov-06 17:53
Stephen Hewitt9-Nov-06 17:53 
GeneralRe: Stack Pointer Bounds Pin
Mark Salsbery10-Nov-06 5:14
Mark Salsbery10-Nov-06 5:14 
GeneralRe: Stack Pointer Bounds Pin
Bram van Kampen10-Nov-06 14:34
Bram van Kampen10-Nov-06 14:34 
QuestionSubclassing Etc Pin
Bram van Kampen9-Nov-06 15:44
Bram van Kampen9-Nov-06 15:44 
Questionto make video Pin
selectgood9-Nov-06 15:21
selectgood9-Nov-06 15:21 
AnswerRe: to make video Pin
Christian Graus9-Nov-06 16:12
protectorChristian Graus9-Nov-06 16:12 
QuestionRegistry and Shortcuts Pin
locoone9-Nov-06 15:17
locoone9-Nov-06 15:17 
AnswerRe: Registry and Shortcuts Pin
Mark Salsbery9-Nov-06 15:39
Mark Salsbery9-Nov-06 15:39 
Questionstring functions in C Pin
thathvamsi9-Nov-06 14:43
thathvamsi9-Nov-06 14:43 
AnswerRe: string functions in C Pin
Christian Graus9-Nov-06 14:52
protectorChristian Graus9-Nov-06 14:52 
GeneralRe: string functions in C Pin
thathvamsi9-Nov-06 15:06
thathvamsi9-Nov-06 15:06 
AnswerRe: string functions in C Pin
George L. Jackson9-Nov-06 15:07
George L. Jackson9-Nov-06 15:07 
GeneralRe: string functions in C Pin
thathvamsi9-Nov-06 22:08
thathvamsi9-Nov-06 22:08 
AnswerRe: string functions in C Pin
Bram van Kampen9-Nov-06 16:55
Bram van Kampen9-Nov-06 16:55 
QuestionRe: string functions in C Pin
David Crow10-Nov-06 3:59
David Crow10-Nov-06 3:59 
AnswerRe: string functions in C Pin
Mark Salsbery10-Nov-06 5:15
Mark Salsbery10-Nov-06 5:15 
GeneralRe: string functions in C Pin
David Crow10-Nov-06 5:26
David Crow10-Nov-06 5:26 

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.