Alex
Fri May 25 04:15:17 CDT 2007
<mike7411@gmail.com> wrote:
> I was just wondering what the easiest way to figure out
> how a function
> gets name mangled in VC++ is.
In order to figure out mangled name you need to compile the
code. There is no other way I'm aware of. You can infer some
decoration rules from this MSDN article:
"Format of a C++ Decorated Name"
http://msdn2.microsoft.com/en-us/library/2ax8kbk1(vs.80).aspx
However, a lot of info is internal to comiler/linker and may
take considerable effort to discover via reverse
engineering.
On the other hand, if you need to restore original name from
a mangled one, then there is UndName.exe tool, which is part
of VC++. Also, you can use `UnDecorateSymbolName' function
from DbgHelp.dll library.
HTH
Alex