VT Cashbook

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
johanpm
Level 2
Level 2
Posts: 17
Joined: Wed Jul 21, 2010 8:19 am

VT Cashbook

Post by johanpm »

Hi all,

I am trying to get a very simple little program called VT Cashbook to run on wine. I keep on getting the following error:

ActiveX component can't create object.

I then click ok and then get

Run-time error '-2147221166 (80040152)
Automation error

The prog can be downloaded from http://www.vtsoftware.co.uk/cashbook/index.htm
It installs 2x programs, but I am only interested in VT Cashbook

Would be great if someone can help me.
User avatar
dimesio
Moderator
Moderator
Posts: 13207
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

I downloaded the app. It needs native oleaut32.dll, scrrun.dll, and mfc42.dll to run. I copied all three from my XP partition. Scrrun.dll needs to be registered with regsvr32 after copying, and this needs to be done after copying mfc42.dll (or you'll get an error message that it can't be found). After that, set overrides for oleaut32 and scrrun just for this app in winecfg.

Alternatively, winetricks vcrun6 dcom98 will install mfc42 and oleaut32 respectively, but I don't think there's any way to install scrrun.dll with winetricks. If you do use winetricks to install dcom98, install it to a separate wineprefix, as it can prevent many other apps from running.

I don't know how to use the app, so I didn't test much, but everything I clicked on seems functional.
johanpm
Level 2
Level 2
Posts: 17
Joined: Wed Jul 21, 2010 8:19 am

Post by johanpm »

Hi,

I have copied oleaut32.dll, scrrun.dll and mfc42.dll from my windows partition to the system32 directory in wine. I have run "wine regsvr32 mfc42.dll" and it installed the library. I do however get an error "Failed to load DLL /home/johan/.wine/drive_c/windows/system32/scrrun.dll" when trying to install scrrun.dll.

I am very new at this...
User avatar
dimesio
Moderator
Moderator
Posts: 13207
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

johanpm wrote:Hi,

I have copied oleaut32.dll, scrrun.dll and mfc42.dll from my windows partition to the system32 directory in wine. I have run "wine regsvr32 mfc42.dll" and it installed the library. I do however get an error "Failed to load DLL /home/johan/.wine/drive_c/windows/system32/scrrun.dll" when trying to install scrrun.dll.

I am very new at this...
What's the exact command you're using to register scrrun.dll?

Also, what version of Wine are you using? I'm using 1.2; if you're not, upgrade.
johanpm
Level 2
Level 2
Posts: 17
Joined: Wed Jul 21, 2010 8:19 am

Post by johanpm »

I am using 1.2

The command I am running is:

wine regsvr32 /home/johan/.wine/drive_c/windows/system32/scrrun.dll
User avatar
dimesio
Moderator
Moderator
Posts: 13207
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

johanpm wrote:I am using 1.2

The command I am running is:

wine regsvr32 /home/johan/.wine/drive_c/windows/system32/scrrun.dll
That should work. Are you sure the file is in that directory?

Also, is this a clean wineprefix (nothing else installed, no other overrides)?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

johanpm wrote:wine regsvr32 /home/johan/.wine/drive_c/windows/system32/scrrun.dll
No need to specify full path. Wine will find this dll in system32. So simple 'wine regsvr32 scrrun.dll' should work.

If it doesn't work post complete terminal output.
qwertymn
Level 4
Level 4
Posts: 236
Joined: Thu Mar 27, 2008 3:42 am

Post by qwertymn »

wine regsvr32 /home/johan/.wine/drive_c/windows/system32/scrrun.dll
just a side-note: winetricks is your friend: 'winetricks wsh56' does install the sccrun.dll and registers it automatically
johanpm
Level 2
Level 2
Posts: 17
Joined: Wed Jul 21, 2010 8:19 am

Post by johanpm »

I tried the winetricks route...

This is the error message I get. I am using 64bit Fedora. Not sure if this makes any difference.

[johan@johanlaptop ~]$ sh winetricks wsh56
Executing wget -O scripten.exe -nd -c --read-timeout=300 --retry-connrefused --header Accept-Encoding: gzip,deflate http://download.microsoft.com/download/ ... ripten.exe
--2010-07-22 10:13:46-- http://download.microsoft.com/download/ ... ripten.exe
Resolving download.microsoft.com... 165.165.37.9, 165.165.37.24
Connecting to download.microsoft.com|165.165.37.9|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1079152 (1.0M) [application/octet-stream]
Saving to: “scripten.exe”

100%[======================================>] 1,079,152 101K/s in 7.6s

2010-07-22 10:13:58 (138 KB/s) - “scripten.exe” saved [1079152/1079152]

Executing /usr/bin/cabextract -d /home/johan/.wine/dosdevices/c:/windows/system32 /home/johan/.winetrickscache/scripten.exe
Extracting cabinet: /home/johan/.winetrickscache/scripten.exe
extracting /home/johan/.wine/dosdevices/c:/windows/system32/dispex.dll
extracting /home/johan/.wine/dosdevices/c:/windows/system32/jscript.dll
extracting /home/johan/.wine/dosdevices/c:/windows/system32/scrobj.dll
extracting /home/johan/.wine/dosdevices/c:/windows/system32/scrrun.dll
extracting /home/johan/.wine/dosdevices/c:/windows/system32/spmsg.dll
extracting /home/johan/.wine/dosdevices/c:/windows/system32/vbscript.dll
extracting /home/johan/.wine/dosdevices/c:/windows/system32/wshcon.dll
extracting /home/johan/.wine/dosdevices/c:/windows/system32/wshext.dll
extracting /home/johan/.wine/dosdevices/c:/windows/system32/cscript.exe
extracting /home/johan/.wine/dosdevices/c:/windows/system32/spuninst.exe
extracting /home/johan/.wine/dosdevices/c:/windows/system32/wscript.exe
extracting /home/johan/.wine/dosdevices/c:/windows/system32/wscript.hlp
extracting /home/johan/.wine/dosdevices/c:/windows/system32/scripten.inf
extracting /home/johan/.wine/dosdevices/c:/windows/system32/wshom.ocx
extracting /home/johan/.wine/dosdevices/c:/windows/system32/update/scripten.cat
extracting /home/johan/.wine/dosdevices/c:/windows/system32/update/spcustom.dll
extracting /home/johan/.wine/dosdevices/c:/windows/system32/update/updspapi.dll
extracting /home/johan/.wine/dosdevices/c:/windows/system32/update/update.exe
extracting /home/johan/.wine/dosdevices/c:/windows/system32/update/update.inf
extracting /home/johan/.wine/dosdevices/c:/windows/system32/update/eula.txt
extracting /home/johan/.wine/dosdevices/c:/windows/system32/update/update.ver

All done, no errors.
Using native,builtin override for following DLLs: jscript.dll
Executing early_wine regedit c:\winetrickstmp\override-dll.reg
REGEDIT4

[HKEY_CURRENT_USER\Software\Wine\DllOverrides]
"*jscript.dll"="native,builtin"
Executing wine regsvr32 dispex.dll jscript.dll scrobj.dll scrrun.dll vbscript.dll wshcon.dll wshext.dll
Successfully registered DLL dispex.dll
Successfully registered DLL jscript.dll
Failed to load DLL scrobj.dll
------------------------------------------------------
Note: command 'wine regsvr32 dispex.dll jscript.dll scrobj.dll scrrun.dll vbscript.dll wshcon.dll wshext.dll' returned status 1. Aborting.
------------------------------------------------------
johanpm
Level 2
Level 2
Posts: 17
Joined: Wed Jul 21, 2010 8:19 am

Post by johanpm »

I have now also tried copying scrrun.dll from another pc, but it still wont register it. Is something else not needed before I can register scrrun.dll? I even tried starting clean with wine, but get the same error.
qwertymn
Level 4
Level 4
Posts: 236
Joined: Thu Mar 27, 2008 3:42 am

Post by qwertymn »

What happens if you do this in a complete new and fresh .wine?

e.g.:

WINEPREFIX=~/garbage winetricks wsh56

then install and run the app also with the WINEPREFIX=~/garbage environmentvariable set?
johanpm
Level 2
Level 2
Posts: 17
Joined: Wed Jul 21, 2010 8:19 am

Post by johanpm »

I basically get the same error if I try that

[johan@johanlaptop ~]$ WINEPREFIX=~/garbage sh winetricks wsh56
wine: created the configuration directory '/home/johan/garbage'
err:mmdevapi:load_libopenal Couldn't load libopenal.so.1: libopenal.so.1: cannot open shared object file: No such file or directory
err:mmdevapi:load_libopenal Couldn't load libopenal.so.1: libopenal.so.1: cannot open shared object file: No such file or directory
wine: configuration in '/home/johan/garbage' has been updated.
Executing /usr/bin/cabextract -d /home/johan/garbage/dosdevices/c:/windows/system32 /home/johan/.winetrickscache/scripten.exe
Extracting cabinet: /home/johan/.winetrickscache/scripten.exe
extracting /home/johan/garbage/dosdevices/c:/windows/system32/dispex.dll
extracting /home/johan/garbage/dosdevices/c:/windows/system32/jscript.dll
extracting /home/johan/garbage/dosdevices/c:/windows/system32/scrobj.dll
extracting /home/johan/garbage/dosdevices/c:/windows/system32/scrrun.dll
extracting /home/johan/garbage/dosdevices/c:/windows/system32/spmsg.dll
extracting /home/johan/garbage/dosdevices/c:/windows/system32/vbscript.dll
extracting /home/johan/garbage/dosdevices/c:/windows/system32/wshcon.dll
extracting /home/johan/garbage/dosdevices/c:/windows/system32/wshext.dll
extracting /home/johan/garbage/dosdevices/c:/windows/system32/cscript.exe
extracting /home/johan/garbage/dosdevices/c:/windows/system32/spuninst.exe
extracting /home/johan/garbage/dosdevices/c:/windows/system32/wscript.exe
extracting /home/johan/garbage/dosdevices/c:/windows/system32/wscript.hlp
extracting /home/johan/garbage/dosdevices/c:/windows/system32/scripten.inf
extracting /home/johan/garbage/dosdevices/c:/windows/system32/wshom.ocx
extracting /home/johan/garbage/dosdevices/c:/windows/system32/update/scripten.cat
extracting /home/johan/garbage/dosdevices/c:/windows/system32/update/spcustom.dll
extracting /home/johan/garbage/dosdevices/c:/windows/system32/update/updspapi.dll
extracting /home/johan/garbage/dosdevices/c:/windows/system32/update/update.exe
extracting /home/johan/garbage/dosdevices/c:/windows/system32/update/update.inf
extracting /home/johan/garbage/dosdevices/c:/windows/system32/update/eula.txt
extracting /home/johan/garbage/dosdevices/c:/windows/system32/update/update.ver

All done, no errors.
Using native,builtin override for following DLLs: jscript.dll
Executing early_wine regedit c:\winetrickstmp\override-dll.reg
REGEDIT4

[HKEY_CURRENT_USER\Software\Wine\DllOverrides]
"*jscript.dll"="native,builtin"
Executing wine regsvr32 dispex.dll jscript.dll scrobj.dll scrrun.dll vbscript.dll wshcon.dll wshext.dll
Successfully registered DLL dispex.dll
Successfully registered DLL jscript.dll
Failed to load DLL scrobj.dll
------------------------------------------------------
Note: command 'wine regsvr32 dispex.dll jscript.dll scrobj.dll scrrun.dll vbscript.dll wshcon.dll wshext.dll' returned status 1. Aborting.
------------------------------------------------------
[johan@johanlaptop ~]$
qwertymn
Level 4
Level 4
Posts: 236
Joined: Thu Mar 27, 2008 3:42 am

Post by qwertymn »

Successfully registered DLL jscript.dll
Failed to load DLL scrobj.dll
------------------------------------------------------
Note: command 'wine regsvr32 dispex.dll jscript.dll scrobj.dll scrrun.dll vbscript.dll wshcon.dll wshext.dll' returned status 1. Aborting.
------------------------------------------------------
well amazing, i 've never seen such an error on a clean ~/.wine. I haven't got a clue where this error comes from. The only thing i can think of is you have a screwed up wine-package?

Could you run this:

WINEDEBUG=+relay,+seh,+tid wine regsvr32.exe scrrun.dll &>/tmp/log.txt

and after compressing /tmp/log.txt (with bzip2) put the file /tmp/log.txt.bz2 somewhere up on a server where i can get it to have a look?
johanpm
Level 2
Level 2
Posts: 17
Joined: Wed Jul 21, 2010 8:19 am

Post by johanpm »

Done. You can get the file here:
www.generalitsystems.com/downloads/log.txt.bz2
qwertymn
Level 4
Level 4
Posts: 236
Joined: Thu Mar 27, 2008 3:42 am

Post by qwertymn »

I suppose you generated that log after winetricks wsh56, right ? still, looks like some lines are missing from the log :(

could you do this as well:

WINEDEBUG=+module,+file wine regsvr32.exe scrrun.dll &>/tmp/log.txt

and after compressing /tmp/log.txt (with bzip2) put the file /tmp/log.txt.bz2 somewhere up on a server where i can get it to have a look?
johanpm
Level 2
Level 2
Posts: 17
Joined: Wed Jul 21, 2010 8:19 am

Post by johanpm »

qwertymn
Level 4
Level 4
Posts: 236
Joined: Thu Mar 27, 2008 3:42 am

Post by qwertymn »

apparently it cannot find scrrun and fails. It's looking for the file in syswow64:
trace:file:wine_nt_to_unix_file_name L"\\windows\\system32\\scrrun.dll" not found in /home/johan/.wine/dosdevices/c:/windows/syswow64

I guess you run a 64-bit wine, right? Unfortunately i'm not familiar with how 64-bits wine puts dlls in directories....

Does the following work though:

cd ~
cp -rf ~/.wine/drive_c/windows/system32/scrrun.dll ~
wine regsvr32.exe scrrun.dll
johanpm
Level 2
Level 2
Posts: 17
Joined: Wed Jul 21, 2010 8:19 am

Post by johanpm »

Yes, its 64 bit.

I did the copy and then registered the dll. That worked fine.

[johan@johanlaptop ~]$ cd ~
[johan@johanlaptop ~]$ cp -rf ~/.wine/drive_c/windows/system32/scrrun.dll ~
[johan@johanlaptop ~]$ wine regsvr32.exe scrrun.dll
Successfully registered DLL scrrun.dll
[johan@johanlaptop ~]$

Is it possible to run 32 bit wine on 64 bit Fedora?
johanpm
Level 2
Level 2
Posts: 17
Joined: Wed Jul 21, 2010 8:19 am

Post by johanpm »

After the last thing you asked me to try...

VT Cashbook now doesn't show the active x error any more. It goes past that point and straight to

Run-time error '-2147221166 (80040152)
Automation error
qwertymn
Level 4
Level 4
Posts: 236
Joined: Thu Mar 27, 2008 3:42 am

Post by qwertymn »

I did the copy and then registered the dll. That worked fine.
Then if you now run the application, does it start fine?
Is it possible to run 32 bit wine on 64 bit Fedora?
Not sure. However, maybe there's a problem with the 64-bit Fedora wine-package. I can't think of another reason why simple things like 'winetricks wsh56' don;t work
johanpm
Level 2
Level 2
Posts: 17
Joined: Wed Jul 21, 2010 8:19 am

Post by johanpm »

VT Cashbook now doesn't show the active x error any more. It goes past that point and straight to

Run-time error '-2147221166 (80040152)
Automation error
User avatar
dimesio
Moderator
Moderator
Posts: 13207
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

johanpm wrote: Is it possible to run 32 bit wine on 64 bit Fedora?
Yes, of course. 64 bit Wine is very new. Unless you specifically want to help test it, you're better off installing only 32 bit Wine.
qwertymn
Level 4
Level 4
Posts: 236
Joined: Thu Mar 27, 2008 3:42 am

Post by qwertymn »

try set oleaut32.dll to native in winecfg, or run the app by WINEDLLOVERRIDES="oleaut32=n" wine app_name.exe
johanpm
Level 2
Level 2
Posts: 17
Joined: Wed Jul 21, 2010 8:19 am

Post by johanpm »

[johan@johanlaptop VT Transaction]$ WINEDLLOVERRIDES="oleaut32=n" wine Cashbook.exe
err:module:import_dll Library API-MS-Win-Core-LocalRegistry-L1-1-0.dll (which is needed by L"C:\\windows\\system32\\OLEAUT32.dll") not found
err:module:import_dll Library API-MS-Win-Core-ProcessThreads-L1-1-0.dll (which is needed by L"C:\\windows\\system32\\OLEAUT32.dll") not found
err:module:import_dll Library API-MS-Win-Security-Base-L1-1-0.dll (which is needed by L"C:\\windows\\system32\\OLEAUT32.dll") not found
err:module:import_dll Library OLEAUT32.dll (which is needed by L"C:\\windows\\system32\\MSVBVM60.DLL") not found
err:module:import_dll Library MSVBVM60.DLL (which is needed by L"C:\\Program Files\\VT Transaction\\Cashbook.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"C:\\Program Files\\VT Transaction\\Cashbook.exe" failed, status c0000135
johanpm
Level 2
Level 2
Posts: 17
Joined: Wed Jul 21, 2010 8:19 am

Post by johanpm »

Where do I get MSVBVM60.DLL?
Locked