Re: Does anyone else have this problem when trying to load a dll?



Christopher has a problem loading a dll with loadlibrary:

loadlibrary'\\tom...\TDdll.dll', '\\tom...\TDdll.h', 'alias'
, 'new_lib');

which results in the following:

There was an error loading
thelibrary "\\tomahawk\users\Fac_Staff\yiliu\new\TDdll.dll"
Error using ==> loaddefinedlibrary
This application has failed to start because the
application configuration is incorrect.
Reinstalling the application may fix this problem.



It sounds like some dependency of the dll you are trying to load is missing. Try using dependency walker to check for missing
dependences. I suggest using profile mode on matlab.exe and then looking for errors when you call loadlibrary.


.



Relevant Pages

  • Re: Unable to load DLL - The file is there
    ... | What DLL should I be missing? ... I just found an header that allows the DLL to work in Windows XP ... | Willy Denoyette wrote: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Unable to load DLL - The file is there
    ... Tried with an wireless USB adapter and a wireless ... Iniside the DLL, even before it begins mainof WrapiTest.cpp, it ... | What DLL should I be missing? ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Loadgen - error registering MSMQTransmitter.dll
    ... Some missing dependencies, most likely this DLL depends on some other DLLs ... the Dependency Walker tool and see which DLLs you are missing. ... Loadgen - error registering MSMQTransmitter.dll ...
    (microsoft.public.biztalk.general)
  • Re: AfxLoadLibrary fails, GetLastError returns 14001
    ... I GetLastError() returns 14001 when I try to use LoadLibrary, ... The .dll file is in the same directory as the executable, ... a missing dependency was my first thought. ...
    (microsoft.public.vc.mfc)
  • Re: distributing an application
    ... > Run the Dependency check to check what you are missing. ... > dll in the developing machine than the one in the deployment machine. ...
    (microsoft.public.platformsdk.security)