Call function in c++ dll without header

mileschet picture mileschet · Feb 16, 2009 · Viewed 23.6k times · Source

I would like to call a method from an dll, but i don't have the source neither the header file. I tried to use the dumpbin /exports to see the name of the method, but i can found the methods signature?

Is there any way to call this method?

Thanks,

Answer

zdan picture zdan · Feb 16, 2009

If the function is a C++ one, you may be able to derive the function signature from the mangled name. Dependency Walker is one tool that will do this for you. However, if the DLL was created with C linkage (Dependency Walker will tell you this), then you are out of luck.