Re: Search path in LoadLibrary problem ...
- From: "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT com>
- Date: Wed, 26 Jul 2006 10:55:03 -0700
He's saying that the DLL is implicitly linked. That is, a.dll links b.dll's
import library, rather than a.dll calling LoadLibrary() to load b.dll.
Paul T.
"Ulrich Eckhardt" <eckhardt@xxxxxxxxxxxxxx> wrote in message
news:rdfjp3-l8s.ln1@xxxxxxxxxxxxxxxxxxxxxxxxx
Petr Svoboda wrote:
I have problem with LoadLibrary function on windows CE.
I have library, a.dll that contain b.dll library (static linked).
Wait: b.dll is a DLL, a Dynamically Linked Library, you can't statically
link that. What exactly do you mean? From the rest below, I guess you
mean "implicitly linked", i.e. that the dynamic loader loads it
automatically and not that it is loaded explicitly by LoadLibrary().
"a.dll" and "b.dll" library I have in \testA\ directory
(\testA\a.dll and \testA\b.dll).
And i have main executable (main.exe) program, that run "a.dll"
library in \testB directory (\testB\main.exe). "main.exe" contain
::LoadLibrary(_T("\\testA\\a.dll"));
Result of "LoadLibrary" is failed, because a.dll windows OS found,
but b.dll not...
I think the MSDN pretty well documents the behaviour of the dynamic loader
on the different OSs (CE!=NT!=w9x). In your case, a.dll tries to find
b.dll
but fails because it is not in the searched dirs.
In windows XP (or 98, 95 ...) exist SetCurrentDir(...) function, that
solve it (SetCurrentDir(_T("\\testA"))). But on windows CE don't exist
it.
CE processes don't have a thing called 'current directory', which is why
SetCurrentDir() doesn't exist.
Uli
.
- Follow-Ups:
- Re: Search path in LoadLibrary problem ...
- From: r_z_aret
- Re: Search path in LoadLibrary problem ...
- References:
- Search path in LoadLibrary problem ...
- From: Petr Svoboda
- Re: Search path in LoadLibrary problem ...
- From: Ulrich Eckhardt
- Search path in LoadLibrary problem ...
- Prev by Date: Re: x86 CE SDK
- Next by Date: Re: Embedded Visual C++: easy or not?
- Previous by thread: Re: Search path in LoadLibrary problem ...
- Next by thread: Re: Search path in LoadLibrary problem ...
- Index(es):
Relevant Pages
|