Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: iCe on January 14, 2007, 09:29 PM

Title: Retrieve Values sent to OCX
Post by: iCe on January 14, 2007, 09:29 PM
How would I go about finding out what the values are that are being sent to an ocx? This one OCX calls a function and passes a value to it and I would like to know what it has sent to the function. What tools or api could I use to retrieve the values?
Title: Re: Retrieve Values sent to OCX
Post by: warz on January 14, 2007, 09:38 PM
Could use a debugger, and set a breakpoint on the call to the function - there you can view everything being passed to the function.
Title: Re: Retrieve Values sent to OCX
Post by: iCe on January 14, 2007, 10:16 PM
I have Win Dbg now. How do you set a breakpoint to the function?
Title: Re: Retrieve Values sent to OCX
Post by: UserLoser on January 15, 2007, 12:41 AM
bp addr

or read helpfile
Title: Re: Retrieve Values sent to OCX
Post by: warz on January 16, 2007, 02:28 AM
Depends. You will either have to locate the function within the ocx file, and set a breakpoint on the actual address itself if the function is not exported, otherwise you can just set a breakpoint on the function's exported name. You can also locate where the application calls the function, and breakpoint there.