Can't load native dll

Andriy Palamarchuk apa3a at yahoo.com
Wed Apr 24 07:48:36 CDT 2002


Lawson, thank you for the detailed response.

--- lawson_whitney at juno.com wrote:
> On Tue, 23 Apr 2002, Andriy Palamarchuk wrote:
> 
> > When I try to load winelib dll I get an error
> message:
> > "err:module:MODULE_LoadLibraryExA Loading of
> native
> > DLL <dllname> failed (error 193), check this
> file."
> >
> > The error message is printed for call:
> >
> > DllHandle = LoadLibrary(DllName);
> >
> > This happens even when I try to load standard Wine
> > dlls, like dlls/msisys.ocx.so
> >
> > Did I miss something obvious?
> >
> > Thanks,
> > Andriy Palamarchuk
> 
> Yes.  You have a native msisys.ocx lurking somewhere
> in [wine] "Path"=,
> probably an MZ but not a PE format,
> and this entry at the end of [DllOverrides]
> "*" = "native, builtin"
> so Wine, being a good unix program, tries to load
> it.
> 
> Only guessing, of course.

I think this is a different problem. I came across the
issue when I tried to create a unit test which loads
itself as dll.

I took your test application, renamed it to "test",
built as Winelib application and tried to load itself.

Results:
$ ./test ./test.so
/./test ./test.so/
arg 0: /./test/
arg 1: /./test.so/
err:module:MODULE_LoadLibraryExA Loading of native DLL
F:\prj\wine_test\test.so failed (error 193), check
this file.
handle 0 last error 193

Can you do this?

The results is the same whatever I put in the first
place in config file:
;default for all other dlls
"*" = "native, builtin, so"

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