Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to Get Function argument names in mangle data?

How to Get Function argument names in mangle data?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mathivanaan
    wrote on last edited by
    #1

    Hi I am using UnDecorateSymbolName() method get function name and argument data type. but i want actual argument variable name? i try this code like void ExtractCppSymbol(char *szDecoratedName) { char szFunc[512]; if ( UnDecorateSymbolName(szDecoratedName, szFunc, 512, UNDNAME_COMPLETE > 0 )) { cout<

    CPalliniC 1 Reply Last reply
    0
    • M mathivanaan

      Hi I am using UnDecorateSymbolName() method get function name and argument data type. but i want actual argument variable name? i try this code like void ExtractCppSymbol(char *szDecoratedName) { char szFunc[512]; if ( UnDecorateSymbolName(szDecoratedName, szFunc, 512, UNDNAME_COMPLETE > 0 )) { cout<

      CPalliniC Offline
      CPalliniC Offline
      CPallini
      wrote on last edited by
      #2

      As far as I know the argument names aren't in the decorated name, so there is NO way to extract them. :)

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
      [My articles]

      In testa che avete, signor di Ceprano?

      M 1 Reply Last reply
      0
      • CPalliniC CPallini

        As far as I know the argument names aren't in the decorated name, so there is NO way to extract them. :)

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
        [My articles]

        M Offline
        M Offline
        mathivanaan
        wrote on last edited by
        #3

        i am using input mangled data from VC++ MAP file. This MAP file contains all details. i parse MAP file and pass to UnDecorateSymbolName() method. OR how to pass input for argument name with mangle data?

        S 1 Reply Last reply
        0
        • M mathivanaan

          i am using input mangled data from VC++ MAP file. This MAP file contains all details. i parse MAP file and pass to UnDecorateSymbolName() method. OR how to pass input for argument name with mangle data?

          S Offline
          S Offline
          Sauro Viti
          wrote on last edited by
          #4

          The function and method names are decorated accordingly to the used calling convention, anyway what you can extract from a decorated name is, at most, the type of the formal parameters of a function (e.g. int, char *, struct MyStruct &, etc.), but not the name used in the source code.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups