Hi people,

Im loading a dll - from windows\system32 , within my own dll that im writing. 
Now, this all works fine on Windows XP, but, on Vista (and maybe also on xp64, 
not sure yet) it cannot find the dll in system32 folder, but it works fine when 
i put the dll right into the host directory (the host being the program where 
MY plugin runs in (which then loads another dll from system32)...So, im 
wondering , where does Vista try to load this from?
C:\Windows\SysWOW64 maybe?

Thanks! i dont have a vista system here myself to try..

Max

-------- Original-Nachricht --------
> Datum: Thu, 10 Apr 2008 19:45:23 -0700
> Von: Thomas Hruska <[EMAIL PROTECTED]>
> An: [email protected]
> Betreff: Re: [c-prog] win dll location

> [EMAIL PROTECTED] wrote:
> >> Only DLL names are stored in the import section of the PE file. No
> >> paths. Best solution would be to have the user drop the libsndfile DLL
> >> into the Windows\System32 directory. Although I don't see why you can't
> >> have both in the same directory.
> > 
> > Thanks Thomas. The reason i can't have it in the same dir is that it
> itself is a dll too, and therefore the host-app - where it runs in - defines
> the path. At least thats what i think ? It def. does not work with the dll
> in the same folder as the 'main' dll. So it seems that your suggestion - ask
> user to drop it into the sys folder - is the only option i got really,
> because:
> > 
> >> There should be a static library compilation type for libsndfile so you
> >> can statically link the code against your DLL. This is so that
> >> everything is contained in one DLL.
> > 
> > For licensing reasons i can't do that (cause i dont want to open source
> my stuff). It needs to be linked dynamically.
> > 
> > Thanks
> > Max
> 
> Drat.  Forgot about that little restriction of the LGPL.
> 
> You could also drop that DLL into the main EXE's directory.  That should 
> work as well.
> 
> -- 
> Thomas Hruska
> CubicleSoft President
> Ph: 517-803-4197
> 
> *NEW* MyTaskFocus 1.1
> Get on task.  Stay on task.
> 
> http://www.CubicleSoft.com/MyTaskFocus/
> 

-- 
Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games! 
http://games.entertainment.gmx.net/de/entertainment/games/free

Reply via email to