Re: setup dll problem by r_z_aret
r_z_aret
Thu Apr 24 11:46:20 PDT 2008
I disabled the post to microsoft.public.pocketpc because that
newsgroup is really not for developers. More below (in line).
On Thu, 24 Apr 2008 16:18:52 +0200, "Saju" <SajuSathyan@hotmail.com>
wrote:
>Hi,
> Is it possible for a setup dll to depend on another dll that is
>dynamically linked to it ? My setup dll doesn't load and the cab
>installation fails. I have packed all the dll with it, but the installation
>still fails. I am accessing some C++ utility classes in the setup dll
>routines.
If you're using LoadLibrary to load a DLL, you can get at least some
info by checking the function's return and calling GetLastError when
appropriate. But a common cause for problems is that LoadLibrary for
Windows CE (and all platforms, like Pocket PC, built on it) looks in
far fewer paths than does the version for "big" Windows. If I recall
correctly, the list is
root directory of memory card
windows
root directory of main memory
directory for executable that started process
I'm quite sure about the first, although it sure seems odd to me. I'm
much more certain about the last. I'm not so sure about the order of
the middle two. I'm also not at all sure where a packed DLL might wind
up.
>
>Thanks for your suggestions
-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com