Can't run Foxit Reader on Wine 9.0 – mfc140u.dll error

Questions about Wine on Linux
Post Reply
Extrejoind
Newbie
Newbie
Posts: 2
Joined: Wed Apr 09, 2025 4:53 am

Can't run Foxit Reader on Wine 9.0 – mfc140u.dll error

Post by Extrejoind »

I'm trying to run Foxit Reader (latest Windows version) on Wine 9.0, using Ubuntu 22.04. The installation completes fine, but when I try to launch the app, it immediately crashes.

The terminal shows:

Code: Select all

err:module:import_dll Library mfc140u.dll not found
err:module:LdrInitializeThunk Importing dlls failed, status c0000135
So far I've tried:

Installing vcrun2015 and mfc140 using winetricks

Creating a clean wineprefix

Switching Windows version to 10 in winecfg

Still, same error. I just want to open PDFs with Foxit because it's fast and familiar. Has anyone had success running it under Wine 9.0?

Any help would be appreciated. Thanks!
Extrejoind
Newbie
Newbie
Posts: 2
Joined: Wed Apr 09, 2025 4:53 am

Re: Can't run Foxit Reader on Wine 9.0 – mfc140u.dll error

Post by Extrejoind »

No one knows how to solve this.slice master I'm really stuck.
rdepaoli
Level 2
Level 2
Posts: 11
Joined: Wed Jan 29, 2025 11:43 am

Re: Can't run Foxit Reader on Wine 9.0 – mfc140u.dll error

Post by rdepaoli »

Extrejoind wrote: Mon Apr 28, 2025 11:25 pm No one knows how to solve this.slice master I'm really stuck.
Good morning Extrejoind.

You might want to try and install other versions of vcrun, too.

Try
  • Microsoft Visual C++ 2010 (v10), plus
  • Microsoft Visual C++ 2012 (v11), plus
  • Microsoft Visual C++ 2013 (v12), plus
  • Microsoft Visual C++ 2015-2022
and see after each step, if your mfc140u issue disappeared.

Make sure to install 32-bit and 64-bit versions.

Another thought:
If you don't get anywhere, you could use a trial version of CrossOver aka cxoffice by CodeWeavers (company involved in the development of wine).
https://gitlab.winehq.org/wine/wine/-/w ... e-for-wine

They do have a number of recipes for Foxit. Try one of those and see, what runtimes they use...

I hope this helps.

Note:
I'm not affiliated with CodeWeavers, just a user of both, wine and CrossOver/cxoffice.
rdepaoli
Level 2
Level 2
Posts: 11
Joined: Wed Jan 29, 2025 11:43 am

Re: Can't run Foxit Reader on Wine 9.0 – mfc140u.dll error

Post by rdepaoli »

This was created by mistake, apologies.
desessarts
Level 4
Level 4
Posts: 200
Joined: Wed Oct 04, 2023 7:57 am

Re: Can't run Foxit Reader on Wine 9.0 – mfc140u.dll error

Post by desessarts »

I can see this mfc140u.dll in several libraries

Code: Select all

$ sudo winetricks --self-update
[sudo] Mot de passe de gg : 
Executing cd /usr/bin
Executing cd /tmp/winetricks.TMrEwiMq
Downloading https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks to /tmp/winetricks.TMrEwiMq
--2025-06-23 14:47:09--  https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
Résolution de raw.githubusercontent.com (raw.githubusercontent.com)… 2606:50c0:8001::154, 2606:50c0:8002::154, 2606:50c0:8003::154, ...
Connexion à raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8001::154|:443… connecté.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : 797287 (779K) [text/plain]
Sauvegarde en : « winetricks »

winetricks                                           100%[=====================================================================================================================>] 778,60K  2,35MB/s    ds 0,3s    

2025-06-23 14:47:09 (2,35 MB/s) — « winetricks » sauvegardé [797287/797287]

Executing cd /home/gg
Executing mv /tmp/winetricks.TMrEwiMq/winetricks /usr/bin/winetricks.update
Executing rmdir /tmp/winetricks.TMrEwiMq
Executing cp /usr/bin/winetricks /usr/bin/winetricks.bak
Executing chmod -x /usr/bin/winetricks.bak
Executing mv /usr/bin/winetricks.update /usr/bin/winetricks
Executing chmod +x /usr/bin/winetricks
Executing cd /usr/bin
------------------------------------------------------
warning: Update finished! The current version is 20250102-next - sha256sum: cad07aa4609655d3197b044549a9bb5498d9fd43a6f9b22c6927e18c4f3f669e. Use 'winetricks --update-rollback' to return to the previous version.
------------------------------------------------------
gg@debian:~ 7s $ WINEARCH=win64 WINEPREFIX=~/.wine_reno winetricks dlls list | grep mfc140u
Executing cd /usr/bin
vcrun2015                Visual C++ 2015 libraries (concrt140.dll,mfc140.dll,mfc140u.dll,mfcm140.dll,mfcm140u.dll,msvcp140.dll,msvcp140_1.dll,msvcp140_atomic_wait.dll,vcamp140.dll,vccorlib140.dll,vcomp140.dll,vcruntime140.dll,vcruntime140_1.dll) (Microsoft, 2015) [downloadable]
vcrun2017                Visual C++ 2017 libraries (concrt140.dll,mfc140.dll,mfc140u.dll,mfcm140.dll,mfcm140u.dll,msvcp140.dll,msvcp140_1.dll,msvcp140_2.dll,msvcp140_atomic_wait.dll,vcamp140.dll,vccorlib140.dll,vcomp140.dll,vcruntime140.dll,vcruntime140_1.dll) (Microsoft, 2017) [downloadable]
vcrun2019                Visual C++ 2015-2019 libraries (concrt140.dll,mfc140.dll,mfc140u.dll,mfcm140.dll,mfcm140u.dll,msvcp140.dll,msvcp140_1.dll,msvcp140_2.dll,msvcp140_atomic_wait.dll,msvcp140_codecvt_ids.dll,vcamp140.dll,vccorlib140.dll,vcomp140.dll,vcruntime140.dll,vcruntime140_1.dll (Microsoft, 2019) [downloadable]
vcrun2022                Visual C++ 2015-2022 libraries (concrt140.dll,mfc140.dll,mfc140chs.dll,mfc140cht.dll,mfc140deu.dll,mfc140enu.dll,mfc140esn.dll,mfc140fra.dll,mfc140ita.dll,mfc140jpn.dll,mfc140kor.dll,mfc140rus.dll,mfc140u.dll,mfcm140.dll,mfcm140u.dll,msvcp140.dll,msvcp140_1.dll,msvcp140_2.dll,msvcp140_atomic_wait.dll,msvcp140_codecvt_ids.dll,vcamp140.dll,vccorlib140.dll,vcomp140.dll,vcruntime140.dll,vcruntime140_1.dll) (Microsoft, 2022) [downloadable]
gg@debian:~ 2s $ 
desessarts
Level 4
Level 4
Posts: 200
Joined: Wed Oct 04, 2023 7:57 am

Re: Can't run Foxit Reader on Wine 9.0 – mfc140u.dll error

Post by desessarts »

so try either

Code: Select all

winetricks -q vcrun2015  
or

Code: Select all

winetricks -q vcrun2017
or

Code: Select all

winetricks -q vcrun2019
or

Code: Select all

winetricks -q vcrun2022
rdepaoli
Level 2
Level 2
Posts: 11
Joined: Wed Jan 29, 2025 11:43 am

Re: Can't run Foxit Reader on Wine 9.0 – mfc140u.dll error

Post by rdepaoli »

rdepaoli wrote: Mon Jun 23, 2025 7:29 am This was created by mistake, apologies.
Here the intended post...

The Foxit version you are using is 2024.1.0.23997? Or something else?

For this version, MS Visual C++ redist 2015 (14.0), x86 & AMD64, build 14.0.23026 works.

I can see mfc140u.dll under
  • c:/windows/syswow64/ , and
  • c:/Program Files (x86)/Foxit Software/Foxit PDF Reader/
and Foxit starts just fine...
Post Reply