Can't load native dll
Andriy Palamarchuk
apa3a at yahoo.com
Wed Apr 24 12:08:29 CDT 2002
--- lawson_whitney at juno.com wrote:
[... skipped ...]
> cmdl.exe (by lcc-win) can load cmdl by winemaker
> with the dll option,
> but - even in windows, can you run a dll from the
> command line? I have
> no success with it from the unix command line. In
> effect, wine builtin
> dlls are not unix executables nor shared libraries
> exactly, but
> elf-format pseudo PE libraries. You can't load them
> with dlopen, you
> have to use wine on them. That's sort of why the
> moved to
> /usr/local/lib/wine in a default configuration, and
> that doesn't go in
> /etc/ld.so.conf nor LD_LIBRARY_PATH.
>
> Also, I think winelib programs and dlls don't get
> argc and argv[], so I
> have been getting segment faults.
>
> Wine doesn't expect to be told to load a builtin dll
> by the unix
> filename, but by the windows name, I think. This is
> getting a bit over
> my head, but in case it may help...
I think I was too optimistic about using the same file
as dll and exe, but at least I should be able to load
exe file with LoadLibrary, e.g. to extract resources.
See:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/dll_1o8p.asp
Andriy Palamarchuk
__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/
More information about the wine-users
mailing list