Undecorate


Description:
Simple function to undecorate decorated C++ symbol names.
 
Code:
Private Declare Function UnDecorateSymbolName Lib "imagehlp" _
    (ByVal DecoratedName As String, ByVal UnDecoratedName As String, _
    ByVal UndecoratedLength As Long, ByVal Flags As Long) As Long

Public Function Undecorate(ByVal sInput As String) As String

    sInput = Trim(sInput)
    Undecorate = Space(2048)
    UnDecorateSymbolName sInput, Undecorate, 2048, 0

End Function
 
Sample Usage:
 
    Debug.Print Undecorate("??0?$_Complex_base@M@std@@QAE@ABM0@Z")