Re: Search path in LoadLibrary problem ...

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Please don't separately post the same message to multiple groups. It's
annoying for those of us who read several groups to see the same message
over and over, and it also leaves many orphaned threads in the archives,
making searches more frustrating, also. If you feel for some reason that
you need to post to several groups (this question does *not* require that),
list them in the To field of a *single* message, and the readers and
archivers will do the right thing.

I replied in one of your other targets...

Paul T.

"Petr Svoboda" <petr.svoboda@xxxxxxxxxxxx> wrote in message
news:uHw%23o4AsGHA.4176@xxxxxxxxxxxxxxxxxxxxxxx
Hello!

I have problem with LoadLibrary function on windows CE.
I have library, a.dll that contain b.dll library (static linked).
"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...

In windows XP (or 98, 95 ...) exist SetCurrentDir(...) function, that
solve it (SetCurrentDir(_T("\\testA"))). But on windows CE don't exist it.

This is a problem. I can load library dynamically or put b.dll into
a.dll and "destroy" b.dll, but these solutions do not like me...

Thanks for answers,

Petr


.



Relevant Pages

  • Re: LNK1112
    ... Please don't separately post the same question to multiple groups. ... many unresolved questions laying around in the archives and annoys those who ...
    (microsoft.public.windowsce.embedded)
  • Re: embedded visual c++ to Visual Studio 2005 Migration
    ... Please don't separately post the same message to multiple groups. ... annoying to those who read those groups and leaves orphaned threads in the ... archives, making them less-useful. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Prevention of Application Installation
    ... Please don't separately post the same message to multiple groups. ... annoying to those who read several groups and contaminates the archives with ... many orphaned threads. ...
    (microsoft.public.windowsce.embedded)
  • Re: Voice recognition
    ... Please don't separately post the same question to several groups. ... annoying to those who read many groups and contaminates the archives with ... orphaned threads. ...
    (microsoft.public.windowsce.embedded)