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?
Could use a debugger, and set a breakpoint on the call to the function - there you can view everything being passed to the function.
I have Win Dbg now. How do you set a breakpoint to the function?
bp addr
or read helpfile
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.