what do you do if a dll is corrupt?

What do you do if an application fails and an error message is that an
"entry point for a procedure is not found." You then go find the appropriate
DLL file and try to register it and the registration fails and the message
is that it does not appear to be a valid DLL file at all.

I am talking about DNSAPI.DLL in this case but it appears to be a frequent
problem and I want to know what one can do about it. What is the protocol

That dll appears to be in 3 different incarnations in my computer, on two
different partitions, the latest version is from May 2005. They all failed.

Any advice will be much appreciated.

Thanks.




Answer this question

what do you do if a dll is corrupt?

  • joeydj

    Thanks, it is a useful piece of info.

    I use DUMPBIN.EXE to find dependencies. It did not occur to me to check this one.



  • xanadont

    Alexx,

    >"entry point for a procedure is not found."

    Usually means you've specified the incorrect case for the name of the function in an API style dll.

    Check out this article from my website http://www.geocities.com/df_foxpro/qgen011.htm



  • Nelson Rodrigues

    I just downloaded your utility. It is very cute and extremely useful. Thanks again.

  • Foolios

    DnsApi.dll is not an ActiveX module and can thus not be registered. It has a bunch of exports, the application may just ask for the wrong one. You can see the list of exports with the Dependency Walker utility.



  • what do you do if a dll is corrupt?