Can't load native dll

lawson_whitney at juno.com lawson_whitney at juno.com
Tue Apr 23 19:21:03 CDT 2002


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.

[whit at giftie bin]$ wine ~/tools/cmdl/cmdl.exe msisys.ocx
//home/whit/tools/cmdl/cmdl.exe msisys.ocx/
arg 0: //home/whit/tools/cmdl/cmdl.exe/
arg 1: /msisys.ocx/
err:module:MODULE_LoadLibraryExA Loading of native DLL C:\away\bin\msisys.ocx fa
iled (error 193), check this file.
h 0 le 193
[whit at giftie bin]$ file msisys.ocx
msisys.ocx: MS-DOS executable (EXE), OS/2 or MS Windows
[whit at giftie bin]$ pedump msisys.ocx
Dump of file msisys.ocx (5632 bytes)

Unhandled EXE type, or invalid .EXE
[whit at giftie bin]$ sed 's/native,\ builtin/builtin,\ native/g' ~/.wine/config|sa
fe ~/.wine/config
[whit at giftie bin]$ wine ~/tools/cmdl/cmdl.exe msisys.ocx
fixme:msvcrt:_setmode fd (3) mode (16384) TEXT not implemented
fixme:msvcrt:MSVCRT_signal (11 0x4013f4):stub
//home/whit/tools/cmdl/cmdl.exe msisys.ocx/
arg 0: //home/whit/tools/cmdl/cmdl.exe/
arg 1: /msisys.ocx/
h 1073844224 le 6
[whit at giftie bin]$
cat tools/cmdl/cmdl.c
#include <stdio.h>
#include <win.h>
main(int argc, char **argv)
{
    int i;
    HMODULE h;
    DWORD le;
    printf("/%s/\n",GetCommandLine());
    for (i = 0; i < argc; i++)
        printf("arg %d: /%s/\n", i, argv[i]);
    h = LoadLibrary(argv[1]);
    le = GetLastError();
    printf("h %d le %d\n", h, le);
}

Lawson
---oops---





More information about the wine-users mailing list