Paint Shop Pro and MFC42.dll

Questions about Wine on Linux
Locked
palloy
Level 2
Level 2
Posts: 19
Joined: Sun Jan 29, 2012 8:56 pm

Paint Shop Pro and MFC42.dll

Post by palloy »

Lubuntu 12.04, Wine 1.4, PSP 5.01 (an oldie but a goodie)

Code: Select all

$ wine "/home/xxx/software/Paint Shop Pro 5.01/psp.exe"
err:module:import_dll Library MFC42.DLL (which is needed by L"I:\\software\\Paint Shop Pro 5.01\\JCMYK.dll") not found
err:module:import_dll Library JCMYK.dll (which is needed by L"I:\\software\\Paint Shop Pro 5.01\\psp.exe") not found
err:module:import_dll Library MFC42.DLL (which is needed by L"I:\\software\\Paint Shop Pro 5.01\\psp.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"I:\\software\\Paint Shop Pro 5.01\\psp.exe" failed, status c0000135
$
/home/xxx/software/Paint Shop Pro 5.01/JCMYK.dll already exists
and I have copied-renamed from a real /windows/system32/mfc42.dll to
/home/xxx/software/Paint Shop Pro 5.01/MFC42.dll
so I presume that's not where Wine was looking.

So I tried Winetricks > Install a dll > mfc42.dll and got the error:
"sha1sum mismatch! Rename /home/dk/.cache/winetricks/vcrun6/vc6redistsetup_enu.exe and try again."
So I did that, but got the same error.

Is it just a matter of putting the .dlls in the right folder, if so which one?
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Paint Shop Pro and MFC42.dll

Post by dimesio »

palloy wrote: and I have copied-renamed from a real /windows/system32/mfc42.dll to
/home/xxx/software/Paint Shop Pro 5.01/MFC42.dll
so I presume that's not where Wine was looking.
Put it in the wineprefix's /windows/system32 directory.
So I tried Winetricks > Install a dll > mfc42.dll and got the error:
"sha1sum mismatch! Rename /home/dk/.cache/winetricks/vcrun6/vc6redistsetup_enu.exe and try again."
You probably have an outdated winetricks.
palloy
Level 2
Level 2
Posts: 19
Joined: Sun Jan 29, 2012 8:56 pm

Re: Paint Shop Pro and MFC42.dll

Post by palloy »

Thanks for that.
I put MFC42.dll in drive_c/windows/system32/
but it reported it didn't find it, but it also triggered calls to a lot more dlls like API-MS-Win-core-xxx that it weren't missing before, so I guess it needs to be properly installed as a package.

My winetricks is v.20120308 which seems to be the latest at https://launchpad.net/~ubuntu-wine/+archive/ppa .

Looking at the original dates on the PSP files, they date back to 1998. So I altered Wine Configuration for psp.exe to Win98, but it didn't make any difference.

Is this the point at which I should give up and learn a new editor compatible with Lubuntu ?
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Paint Shop Pro and MFC42.dll

Post by dimesio »

palloy wrote: My winetricks is v.20120308 which seems to be the latest at https://launchpad.net/~ubuntu-wine/+archive/ppa .
The latest one your distro packages is not the latest. Get it from http://winetricks.googlecode.com/svn/tr ... winetricks.
palloy
Level 2
Level 2
Posts: 19
Joined: Sun Jan 29, 2012 8:56 pm

Re: Paint Shop Pro and MFC42.dll

Post by palloy »

That's the same file.
================
#!/bin/sh

# Name of this version of winetricks (YYYYMMDD)
WINETRICKS_VERSION=20120308
...
==============
bfgsdfds
Newbie
Newbie
Posts: 1
Joined: Mon Jul 30, 2012 4:42 am

Re: Paint Shop Pro and MFC42.dll

Post by bfgsdfds »

Looking at the original dates on the PSP files, they date back to 1998. So I altered Wine Configuration for psp.exe to Win98, but it didn't make any difference.

_________________
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Paint Shop Pro and MFC42.dll

Post by dimesio »

palloy wrote:That's the same file.
Actually, it's probably not. The date in the file is meaningless--Dan only changes it when he does an official release, but changes are made to svn (the version I linked you to) almost every day.
palloy
Level 2
Level 2
Posts: 19
Joined: Sun Jan 29, 2012 8:56 pm

Re: Paint Shop Pro and MFC42.dll

Post by palloy »

OK, that's confusing.
I renamed /winetricks and copied the new file there, then tried installing mfc42.dll again and got the same error: sha1sum mismatch! Rename /home/xxx/.cache/winetricks/vcrun6/vc6redistsetup_enu.exe and try again.
I see that the file vc6redistsetup_enu.exe size is 0 bytes, and the previous renamed version is 0 bytes too. That is obviously not good.
User avatar
DanKegel
Moderator
Moderator
Posts: 1164
Joined: Wed May 14, 2008 11:44 am

Re: Paint Shop Pro and MFC42.dll

Post by DanKegel »

Sounds like you have an out of date winetricks (still!)

Try downloading
http://winetricks.googlecode.com/svn/tr ... winetricks
again(!).

Verify that you have the right version; here's what it looks like at the moment:
$ wc winetricks
18123 55191 620619 winetricks
$ sha1sum winetricks
e5d8c0f0bb3ba006dfe101b9dcd5ec5168902024 winetricks

Then instead of installing it, run it directly with
sh winetricks mfc42
just to make sure you're running what you think you're running.

The new version doesn't even reference vc6redistsetup_enu.exe, which Microsoft
no longer seems to offer for download.
palloy
Level 2
Level 2
Posts: 19
Joined: Sun Jan 29, 2012 8:56 pm

Re: Paint Shop Pro and MFC42.dll

Post by palloy »

http://winetricks.googlecode.com/svn/tr ... winetricks returns a page which is itself a shell script. It does not include the string "wc winetricks".

From the terminal

Code: Select all

xxx@yyy:~$ sh winetricks mfc42
sh: 0: Can't open winetricks
xxx@yyy:~$ sudo sh winetricks mfc42.dll
[sudo] password for xxx: 
sh: 0: Can't open winetricks
xxx@yyy:~$ 
Where is it supposed to be located ?
As I mentioned, I have it as /winetricks , i.e. in root.
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Paint Shop Pro and MFC42.dll

Post by dimesio »

Save it to your home directory.
palloy
Level 2
Level 2
Posts: 19
Joined: Sun Jan 29, 2012 8:56 pm

Re: Paint Shop Pro and MFC42.dll

Post by palloy »

Thanks - it wasn't there before, but it is now.
$ sh winetricks mfc42
now runs and installs from
http://download.microsoft.com/download/ ... up_deu.exe
(note the German language type) and completes OK.

So trying once more to install my app:
$ wine /home/xxx/software/psp5-setup.exe
WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-iySaZW/pkcs11: No such file or directory
$

I don't know if that is good or bad.
Nothing gets added to the Main Menu, so from a terminal:
$ wine "/home/xxx/software/Paint Shop Pro 5.01/psp.exe"
err:module:import_dll Library KERNELBASE.dll (which is needed by L"I:\\software\\Paint Shop Pro 5.01\\MFC42.DLL") not found
err:module:import_dll Library API-MS-Win-Core-Debug-L1-1-0.dll (which is needed by L"I:\\software\\Paint Shop Pro 5.01\\MFC42.DLL") not found
... lots more of these ....
err:module:import_dll Library MFC42.DLL (which is needed by L"I:\\software\\Paint Shop Pro 5.01\\psp.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"I:\\software\\Paint Shop Pro 5.01\\psp.exe" failed, status c0000135
$

In desperation (because I am getting pretty tired of this) I copy KernelBase.dll from a real /windows/system32/ to /home/xxx/.wine/dosdevices/c:/windows/system32/
and try to run the app again.
The "kernelbase.dll not found" error goes away, but the others are still there, including JCMYK.dll and MFC42.dll which are definitely in /home/xxx/.wine/dosdevices/c:/windows/system32/ .
lahmbi5678
Level 7
Level 7
Posts: 823
Joined: Thu Aug 27, 2009 6:23 am

Re: Paint Shop Pro and MFC42.dll

Post by lahmbi5678 »

You could try to start with a clean wineprefix (this is basically your .wine folder, simplest way is to move(backup/delete) the old one, a new one will automatically be created).

which window manager are you using? When you google for that gnome-keyring related error, you'll find some bug reports about some window manager not starting gnome-keyring service.
palloy
Level 2
Level 2
Posts: 19
Joined: Sun Jan 29, 2012 8:56 pm

Re: Paint Shop Pro and MFC42.dll

Post by palloy »

I renamed .wine and it was automatically reinstated ok.
I think that prompted Update Manager to check for updates (from LP-PPA-ubuntu-wine for the first time, I think) and it did some downloads OK.

Tried to install the package again:
$ wine "/home/xxx/software/psp5-setup.exe"
WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-iySaZW/pkcs11: No such file or directory
fixme:iphlpapi:NotifyAddrChange (Handle 0x26be8cc, overlapped 0x26be8b0): stub
WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-iySaZW/pkcs11: No such file or directory
wine: configuration in '/home/xxx/.wine' has been updated.
WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-iySaZW/pkcs11: No such file or directory
$

which is bit different from before.
/drive_c/Program Files/ is back to its default condition, meaning the successful install of Notepad++ has disappeared. Although the menu still shows it there, clicking it doesn't do anything.

Thanks for all your help.
Closed.
Locked