Log in

View Full Version : Finding code in a VC6 dll ?


bik78
June 3rd, 2002, 01:21
Hi all!

A little question: I have a dll compiled with VC6. I know that it contains a class named Cls and that it has a method named Meth1. So I can do:
Code:

Cls *c = new Cls();
*c->Meth1(1, 2);

Now, how do I find the implementation of this Meth1 in a IDA listing? All the functions are named sub_0_1000A50A and the like... Can I somehow find out the offset of this method???

Solomon
June 3rd, 2002, 02:11
Why don't you try tracing into that method in your VC6 debugger?

Just open the "assembly window" in your VC6 IDE when debugging your sample prog, and trace into that function by pressing F11.

bik78
June 3rd, 2002, 17:51
Hmm... Actually I have no idea how to get a class from a DLL...

The usual LoadLibrary / GetProcAddress stuff? Then what do I write in GetProcAddress???

I attach the DLL...

Thanks!