CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2012

    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.


  2. #2
    Join Date
    Oct 2006

    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
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here

    Get your free MS compiler here

  3. #3
    Join Date
    Jul 2002

    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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.