Re: AfxLoadLibrary fails, GetLastError returns 14001
- From: mr.porteiro.head@xxxxxxxxx
- Date: Mon, 16 Mar 2009 22:57:21 -0700 (PDT)
I have now been able to duplicate the problem on another machine, one
that I have more access to.
I GetLastError() returns 14001 when I try to use LoadLibrary,
AfxLoadLibrary, or LoadLibraryEx.
The .dll file is in the same directory as the executable, and I've
verified that that directory is the current working directory.
I double-checked and loaded the .dll file into depends.exe on the
machine that fails to load the .dll, and it doesn't show any missing
dependencies.
On Mar 16, 9:10 pm, mr.porteiro.h...@xxxxxxxxx wrote:
On Mar 15, 4:23 pm, "David Ching" <d...@xxxxxxxxxxxxxxxxxxxxxx> wrote:
"Giovanni Dicanio" <giovanniDOTdica...@xxxxxxxxxxxxxxxxx> wrote in message
news:OcSzCTWpJHA.6064@xxxxxxxxxxxxxxxxxxxxxxx
<mr.porteiro.h...@xxxxxxxxx> ha scritto nel messaggio
news:88c7d73e-3143-4fbb-b15b-ed36410a29f8@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have one user's system whereAfxLoadLibraryconsistently fails.
GetLastError() returns 14001, the message for which is an unhelpful
"This application has failed to start because the application
configuration is incorrect. Reinstalling the application may fix this
problem."
I've verified that the .dll file is there.
I get the same results from LoadLibraryEx().
What might be causing this?
I suspect a manifest problem...
Yes, it sounds like a manifest problem. The error message is the one you
get on startup if a DLL can't be found, so it sounds like this is happening
to a DLL except it is delayed until it is tried to be loaded withAfxLoadLibrary. I would load the .dll into Depends.exe (download the app
called Dependency Walker) and see if it finds any dependent DLL's not
installed properly.
-- David
Yes, a missing dependency was my first thought. I tried loading it
in depends.exe, and it doesn't show anything missing.
.
- Follow-Ups:
- Re: AfxLoadLibrary fails, GetLastError returns 14001
- From: David Ching
- Re: AfxLoadLibrary fails, GetLastError returns 14001
- References:
- AfxLoadLibrary fails, GetLastError returns 14001
- From: mr . porteiro . head
- Re: AfxLoadLibrary fails, GetLastError returns 14001
- From: Giovanni Dicanio
- Re: AfxLoadLibrary fails, GetLastError returns 14001
- From: David Ching
- Re: AfxLoadLibrary fails, GetLastError returns 14001
- From: mr . porteiro . head
- AfxLoadLibrary fails, GetLastError returns 14001
- Prev by Date: Re: AfxLoadLibrary fails, GetLastError returns 14001
- Next by Date: DCOM Configuration Warning
- Previous by thread: Re: AfxLoadLibrary fails, GetLastError returns 14001
- Next by thread: Re: AfxLoadLibrary fails, GetLastError returns 14001
- Index(es):
Relevant Pages
|
Loading