Menu

How to get address of function in dll

2003-01-26
2012-09-26
  • Ondrej Majerech

    Ondrej Majerech - 2003-01-26

    I`m trying to call function that is in the dll, but GetProcAddress returns NULL and GetLastError returns 127 - function not found. But the function IS in that dll! Does anybody know, wheres the mistake?

     
    • Nobody/Anonymous

      If you are trying to get a function for a win32 dll, you need to put an A or a W at the end of the function name to show that you want the ASCII or Unicode version. Otherwise, are you sure you are using LoadLibrary() first?

      Kip

       
    • Ondrej Majerech

      Ondrej Majerech - 2003-01-27

      Yes, this is my OWN dll (and I am using A at the end). I am sure that I am using LoadLibrary () first.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.