CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: How to read Vc++ MAP file?

  1. #1
    Join Date
    Oct 2010
    Posts
    2

    Angry How to read Vc++ MAP file?

    Hi,

    How to get Function name and parameter from MAP file?

    Regards,
    Siva

  2. #2
    Join Date
    Oct 2008
    Posts
    116

    Re: How to read Vc++ MAP file?

    I think you can't find out the function parameter if MAP file.
    You should find it in cod file.
    My English is very bad. So tell me if Something I talked make u confuse.
    My Ebook Store: www.coding.vn/book.php

  3. #3
    Join Date
    Jun 2002
    Posts
    1,417

    Re: How to read Vc++ MAP file?

    Quote Originally Posted by sivadevi View Post
    Hi,

    How to get Function name and parameter from MAP file?

    Regards,
    Siva
    Depends on the compiler. VC++ 2010 the symbols in the map file are mangled, so you have to know how to unmangle them. Microsoft name mangling is pretty complex, but if you're up to the task here's a link that explains it in detail.

  4. #4
    Join Date
    Jan 2002
    Location
    Houston, TX
    Posts
    1,421

    Re: How to read Vc++ MAP file?

    As mentioned, if you look at the map file you'll see decorated names - however it is a trival task to write a small app that can decode these.

    Take a look at UndecroateSymbolName in MSDN.
    Be sure to rate those who help!
    -------------------------------------------------------------
    Karl - WK5M
    PP-ASEL-IA (N43CS)
    PGP Key: 0xDB02E193
    PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

  5. #5
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,607

    Re: How to read Vc++ MAP file?

    Take a look at UndecroateSymbolName in MSDN.
    Code:
    E:\undname
    Microsoft (R) C++ Name Undecorator
    Copyright (C) Microsoft Corporation 1981-2001. All rights reserved.
    
    Usage: undname [flags] fname [fname...]
       or: undname [flags] file
    Best regards,
    Igor

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)