Click here to Skip to main content
15,881,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionprint input parameter values Pin
George_George29-Jun-08 23:35
George_George29-Jun-08 23:35 
AnswerRe: print input parameter values Pin
Rajesh R Subramanian29-Jun-08 23:41
professionalRajesh R Subramanian29-Jun-08 23:41 
GeneralRe: print input parameter values Pin
George_George30-Jun-08 1:10
George_George30-Jun-08 1:10 
GeneralRe: print input parameter values Pin
Rajesh R Subramanian30-Jun-08 1:24
professionalRajesh R Subramanian30-Jun-08 1:24 
GeneralRe: print input parameter values Pin
George_George30-Jun-08 1:46
George_George30-Jun-08 1:46 
GeneralRe: print input parameter values Pin
Rajesh R Subramanian30-Jun-08 2:15
professionalRajesh R Subramanian30-Jun-08 2:15 
GeneralRe: print input parameter values Pin
George_George30-Jun-08 2:27
George_George30-Jun-08 2:27 
GeneralRe: print input parameter values Pin
Rajesh R Subramanian30-Jun-08 2:48
professionalRajesh R Subramanian30-Jun-08 2:48 
George_George wrote:
The article describes a comprehensive solution. But I think there should be a simple solution in debugging tool.


If we do it on our own, I think that it is not going to be simple. But neither am I able to think of a debugging tool or mechanism which will let you do this on a "ready-made" basis.


George_George wrote:
2. If I remember correctly, if the parameter of function is small enough, the input parameters' values are stored in some specific registers, and we can print them out?


Even if the function parameter is small enough, the location where the parameters would be stored will be dependent on the calling convention used. If it is __stdcall (WINAPI), then the function parameters would be simply pushed onto the stack (not on the registers). There is a chance that the parameters (and yes, if being small enough) will be placed on registers if the calling convention is __fastcall. But there's no guarentee, as it might depend upon availability of registers at the time of call as well.


Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP

GeneralRe: print input parameter values Pin
George_George30-Jun-08 16:03
George_George30-Jun-08 16:03 
GeneralRe: print input parameter values Pin
Hamid_RT30-Jun-08 23:08
Hamid_RT30-Jun-08 23:08 
GeneralRe: print input parameter values Pin
George_George30-Jun-08 23:24
George_George30-Jun-08 23:24 
GeneralRe: print input parameter values Pin
Hamid_RT1-Jul-08 21:39
Hamid_RT1-Jul-08 21:39 
GeneralRe: print input parameter values Pin
George_George2-Jul-08 1:42
George_George2-Jul-08 1:42 
GeneralRe: print input parameter values Pin
Hamid_RT2-Jul-08 18:16
Hamid_RT2-Jul-08 18:16 
GeneralRe: print input parameter values Pin
George_George6-Jul-08 3:12
George_George6-Jul-08 3:12 
QuestionCheck file in use Pin
Karismatic29-Jun-08 23:28
Karismatic29-Jun-08 23:28 
AnswerRe: Check file in use Pin
SandipG 29-Jun-08 23:31
SandipG 29-Jun-08 23:31 
GeneralRe: Check file in use Pin
Saurabh.Garg29-Jun-08 23:37
Saurabh.Garg29-Jun-08 23:37 
GeneralRe: Check file in use Pin
Karismatic29-Jun-08 23:42
Karismatic29-Jun-08 23:42 
GeneralRe: Check file in use Pin
SandipG 30-Jun-08 0:14
SandipG 30-Jun-08 0:14 
QuestionFunction pointer corrupts the stack or heap Pin
BadKarma29-Jun-08 22:55
BadKarma29-Jun-08 22:55 
AnswerRe: Function pointer corrupts the stack or heap Pin
Saurabh.Garg29-Jun-08 23:34
Saurabh.Garg29-Jun-08 23:34 
GeneralRe: Function pointer corrupts the stack or heap Pin
BadKarma29-Jun-08 23:49
BadKarma29-Jun-08 23:49 
GeneralRe: Pin
Saurabh.Garg30-Jun-08 0:00
Saurabh.Garg30-Jun-08 0:00 
GeneralRe: Pin
BadKarma30-Jun-08 1:13
BadKarma30-Jun-08 1:13 

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.