Can't load native dll

Andriy Palamarchuk apa3a at
Wed Apr 24 12:08:29 CDT 2002

--- lawson_whitney at 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/ 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.

Andriy Palamarchuk

Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more

More information about the wine-users mailing list