err:... MFC80.DLL even though it's installed

Questions about Wine on Linux
Locked
PenguinLust
Level 2
Level 2
Posts: 30
Joined: Sun Sep 23, 2012 9:47 pm

err:... MFC80.DLL even though it's installed

Post by PenguinLust »

I get:
err:module:import_dll Library MFC80.DLL (which is needed by L"C:\\Program Files (x86)\\empr\\empr.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"C:\\Program Files (x86)\\empr\\empr.exe" failed, status c0000135
This is an app I made. It used to run fine, but now that I did a new build, it doesn't. I suspect what worked before was the version I built under VC6.0. But now that I've built it in 2005, there's this problem. Or it could be one of the service packs. In any case winetricks dlls list gives:
vcrun2005 Visual C++ 2005 libraries (mfc80,msvcp80,msvcr80) (Microsoft, 2011) [downloadable,cached]
The Windows binary is 32-bit and my Linux system (Ubuntu 14.04.2) is 64-bit. My Wine is 1.6.2.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: err:... MFC80.DLL even though it's installed

Post by dimesio »

Apparently you overlooked the message winetricks always prints when run in a 64 bit wineprefix:

Code: Select all

You are using a 64-bit WINEPREFIX. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
Do what it says.
PenguinLust
Level 2
Level 2
Posts: 30
Joined: Sun Sep 23, 2012 9:47 pm

Re: err:... MFC80.DLL even though it's installed

Post by PenguinLust »

Is that the one for which

Code: Select all

env WINEPREFIX="/home/PL/wine32" wine "/home/PL/wine32/drive_c/Program Files/empr/empr.exe"
or maybe

Code: Select all

env WINEPREFIX="/home/PL/wine32" wine C:\\windows\\command\\start.exe /Unix "/home/PL/wine32/drive_c/Program Files/empr/empr.exe"
would work? I already have a 32-bit Wine setup, which has worked in the past, but since the above made no difference to the outcome here, I assumed it was a different problem I was facing.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: err:... MFC80.DLL even though it's installed

Post by dimesio »

Assuming /home/FL/wine32 is really a 32 bit wineprefix and empr.exe is really installed there, this should work:

Code: Select all

env WINEPREFIX="/home/PL/wine32" wine "/home/PL/wine32/drive_c/Program Files/empr/empr.exe"
However, according to

Code: Select all

err:module:import_dll Library MFC80.DLL (which is needed by L"C:\\Program Files (x86)\\empr\\empr.exe") not found
empr.exe is actually installed to a 64 bit wineprefix. You will have to reinstall it to a 32 bit wineprefix. You will also have to install winetricks vcrun2005 to the same 32 bit wineprefix.
PenguinLust
Level 2
Level 2
Posts: 30
Joined: Sun Sep 23, 2012 9:47 pm

Re: err:... MFC80.DLL even though it's installed

Post by PenguinLust »

Well, true, the error isn't exactly the same. When I run w/the WINEPREFIX, I get:
err:module:import_dll Library MFC80.DLL (which is needed by L"C:\\Program Files\\empr\\empr.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"C:\\Program Files\\empr\\empr.exe" failed, status c0000135
That wine32 directory is 32-bit. It got me out of another jam, although, that was w/a different system in those days. But I kept the same directory.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: err:... MFC80.DLL even though it's installed

Post by dimesio »

Did you install winetricks vcrun2005 to that wineprefix before you ran the app?
PenguinLust
Level 2
Level 2
Posts: 30
Joined: Sun Sep 23, 2012 9:47 pm

Re: err:... MFC80.DLL even though it's installed

Post by PenguinLust »

As in

Code: Select all

env WINEPREFIX="/home/PL/wine32" winetricks vcrun2005
? Yes. Although, I now realize that before when I claimed that

Code: Select all

winetricks dlls list
revealed that vcrun2005 was installed, it wasn't w/WINEPREFIX. However, now that I've concentrated on using WINEPREFIX, everything seems configured as it should, but it doesn't work.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: err:... MFC80.DLL even though it's installed

Post by dimesio »

Try upgrading Wine to the latest development release and get the latest winetricks from https://raw.githubusercontent.com/Winet ... winetricks.
PenguinLust
Level 2
Level 2
Posts: 30
Joined: Sun Sep 23, 2012 9:47 pm

Re: err:... MFC80.DLL even though it's installed

Post by PenguinLust »

Hasn't made a difference. I installed Wine 1.7 using the method recommended at the end of https://www.winehq.org/download/ubuntu, then ran

Code: Select all

env WINEPREFIX="/home/PL/wine32" winetricks vcrun2005
It installed Mono itself, but I was able to install Gecko from the distro. Then I ran

Code: Select all

env WINEPREFIX="/home/PL/wine32" wine "/home/PL/wine32/drive_c/Program Files/empr/empr.exe"
and got the same error I always get.
PenguinLust
Level 2
Level 2
Posts: 30
Joined: Sun Sep 23, 2012 9:47 pm

Re: err:... MFC80.DLL even though it's installed

Post by PenguinLust »

In the end, I found that http://www.dll-files.com/dllindex/dll-files.shtml?mfc80 worked for me. I don't know if this is generally an acceptable solution, but it's the one I'm using.
Locked