开发者

How to get function name (function declaration) from VC++ .dll file?

Can anybody tell me how can i get the function declaration i mean function name from VC++ DLL file.

I have .dll of VC++ and i want to extract function name from it ? Is it possible then let me开发者_如何转开发 know.

Thanks in Advance

Thanks, Neel


Since the DLL is not built with debug info, you can only look at functions that are exported by the DLL. Use "Dependency Walker" to see which functions are exported by the DLL. You will see 2 types of functions.

If the name of the function is not mangled (like all functions in the Windows DLL's) you're out of luck. There is (as far as I know) no way to get the arguments of these functions (except looking in the documentation or in include files that might be delivered with the DLL).

If the name of the function is mangled, it will have a name like this: ?makeSizePositive@?$RectangleTemplate@J@TOOLS@@QAEXXZ. This method was originally named makeSizePositive, and all the gibberish added to it give some clue about the class where the method is located, the namespace, and the arguments. See http://www.kegel.com/mangle.html#operators about an explanation.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜