Results 1 to 5 of 5

Thread: Name Mangling (VC++6)

  1. #1
    Zaei
    Guest

    Name Mangling (VC++6)

    Does anyone have a quick link on how VC "decorates" function names? This is totally out of curiosity, so no one really has to do an hour search for anything =).
    Thanks.

    Z.

  2. #2
    Hyperactive Member Amon Ra's Avatar
    Join Date
    Feb 2001
    Location
    In some cave on Uranus...
    Posts
    500
    in a COM book i bought not too long ago, it explains how functions are "decorated" if you dont add C linkage for dll export functions...
    it says

    Code:
             CreateInstance()
    without C linkage would look like this

    Code:
              ?CreateInstance@@YAPAUIUNknown@@XZ
    i dont know if thats what you were looking for...i just came accross it...
    Amon Ra
    The Power of Learning.

  3. #3
    Zaei
    Guest
    Thats what I am looknig for =). I want to know how to get the return type and parameters from that decoration.

    Z.

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    You can search in the internet, if you don't find any information in somer strange sites, there won't be any. MS surely does not document this.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  5. #5
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Originally posted by CornedBee
    You can search in the internet, if you don't find any information in somer strange sites, there won't be any. MS surely does not document this.
    For the good reason that it's totally internal and highly proprietary to the compiler.

    No two compilers can be guaranteed to mangle names the same way, and I don't think it's stated in the standard.

    Anyway, you can probably work it out by checking "create map file" under your linker settings and making a few examples
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width