CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    May 1999
    Posts
    10

    Why i am not getting a pointer to a function in dll


    I am getting the handle to the dll in HANDLE properly but i am always get the function pointer null..
    Why this must be happening??Can anybody tell me..I tried and used another library it works..
    What may be the problem with the dll.I am calling getProcAddress with rite proc name...
    Thanks in advance



  2. #2
    Join Date
    May 1999
    Posts
    69

    Re: Why i am not getting a pointer to a function in dll

    may be try to get pointer by ordinal number instead of function name so you are sure it's not a name mangling problem.

    chrislaw

  3. #3
    Join Date
    May 1999
    Posts
    3,332

    Re: Why i am not getting a pointer to a function in dll

    if you use the DUMPBIN utility with the /EXPORTS argument it will tell you the REAL name of all your functions.


  4. #4
    Join Date
    May 1999
    Posts
    10

    Re: Why i am not getting a pointer to a function in dll

    How this can be achieved ??
    I am not getting what u told...please explain..
    Whats ordinal number??
    Thank
    Anand


  5. #5
    Join Date
    May 1999
    Posts
    69

    Re: Why i am not getting a pointer to a function in dll

    do it like Lothar suggested or create a .def file or create a type library. I'm not sure but maybe the first exported function automatically gets ID 0, second 2 and so on... Instead of using name with GetProcAddress you can use this ordinal ID number too...

    G'Things

    chrislaw

  6. #6
    Join Date
    May 1999
    Posts
    116

    Re: Why i am not getting a pointer to a function in dll

    is the function exported?


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

Featured