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.
精彩评论