list dll library functions signature at runtime
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: list dll library functions signature at runtime

  1. #1
    Join Date
    Dec 2012
    Posts
    1

    Lightbulb list dll library functions signature at runtime

    Hi All,
    I want to know how to list the all the symbols in the shared library(dll or .so file).
    I dont want commands like nm or objdump or depends.exe .
    I want to get the list of functions available in shared library programmatically at runtime (after calling loadlibrary/dlopen and GetProcAddress/dlsym).
    Is there a way to get the complete signature of functions in a shared library??

    Please help.

    Regards
    nrhayyal

  2. #2
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,632

    Re: list dll library functions signature at runtime

    For Windows I have successfully used the information/code found here http://msdn.microsoft.com/en-us/magazine/cc301808.aspx

    For Linux I don't know but from googling and getting this page http://www.linuxquestions.org/questi...ary-so-438693/ I would start by reading the source for nm, readelf & objdump
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    http://www.microsoft.com/visualstudio/eng/downloads

  3. #3
    Join Date
    Jul 2002
    Posts
    2,505

    Re: list dll library functions signature at runtime

    Quote Originally Posted by S_M_A View Post
    For Linux I would start by reading the source for nm, readelf & objdump
    Or by running them with strace.

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center