Unable to register the DLL/OCX

Questions about Wine on macOS.
Locked
spennisi
Level 1
Level 1
Posts: 7
Joined: Mon Dec 26, 2011 6:45 pm

Unable to register the DLL/OCX

Post by spennisi »

I am new to Wine and anything like it. I want to run the application "ATCS Monitor". When I installed ATCS Monitor I received an error message:


C:\windows\system32\wshom.ocx

Unable to register the DLL/OCX: RegSvr32 failed with exit code 0x1

-From Terminal-

err:typelib:sltg_get_typelib_ref Unable to find reference
err:module:import_dll Library ScrRun.dll (which is needed by L"C:\\windows\\system32\\wshom.ocx") not found

I can get through it by just ignoring it but I then have errors in ATCS Monitor.

I am running wine 1.2.3 on a MacBookPro with Lion. I have also installed MSJet and MDAC which were needed for ATCS Monitor. I am stuck and really need some help.
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Unable to register the DLL/OCX

Post by jjmckenzie »

On 12/26/11 5:01 PM, spennisi wrote:
I am new to Wine and anything like it. I want to run the application "ATCS Monitor". When I installed ATCS Monitor I received an error message:


C:\windows\system32\wshom.ocx

Unable to register the DLL/OCX: RegSvr32 failed with exit code 0x1

-From Terminal-

err:typelib:sltg_get_typelib_ref Unable to find reference
err:module:import_dll Library ScrRun.dll (which is needed by L"C:\\windows\\system32\\wshom.ocx") not found

I can get through it by just ignoring it but I then have errors in ATCS Monitor.

I am running wine 1.2.3 on a MacBookPro with Lion. I have also installed MSJet and MDAC which were needed for ATCS Monitor. I am stuck and really need some help.
First, upgrade to Wine 1.3.35. Wine 1.2.3 is almost a year old and is
missing some very important updates.

Second, do a search for the file in the directory $HOME/.wine I suspect
that either it is not there or it is in the same directory as where the
program installed.

(BTW, I am a fellow Mac user and you did the right thing by using MacPorts.)

James
spennisi
Level 1
Level 1
Posts: 7
Joined: Mon Dec 26, 2011 6:45 pm

Post by spennisi »

I have downloaded the 1.3.35 but can't find directions on how to install it on a mac using Terminal.

I installed the previous version using MacPorts by typing into the Terminal:

$ sudo port install wine

That downloaded and installed 1.2.3. I don't know my way around terminal. I have been using guides that I find on the internet. I have been using David Baumgold"s directions.

http://www.davidbaumgold.com/tutorials/wine-mac/

When I searched for the file in the directory $HOME/.wine
No such file or directory
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Unable to register the DLL/OCX

Post by jjmckenzie »

On Tue, Dec 27, 2011 at 4:16 PM, spennisi <[email protected]> wrote:
I have downloaded the 1.3.35 but can't find directions on how to install it on a mac using Terminal.
I don't know the name of the product in MacPorts but it should be
something like wine-devel or wine-development. You might have to
uninstall wine before doing this. Since I don't use MacPorts, I
cannot provide more assistance, but there are Mac Wine users that
might provide assistance.

James
User avatar
André H.
Moderator
Moderator
Posts: 202
Joined: Sun Dec 07, 2008 8:33 am

Re: Unable to register the DLL/OCX

Post by André H. »

spennisi wrote: err:module:import_dll Library ScrRun.dll (which is needed by L"C:\\windows\\system32\\wshom.ocx") not found
yeah, update. we have scrrun.dll since 9th November 2011 (8e74ee58d510eb1c770941a6b0fdca83147aa195)
spennisi
Level 1
Level 1
Posts: 7
Joined: Mon Dec 26, 2011 6:45 pm

Post by spennisi »

I have successfully installed Wine 1.3.35 but now I have a new problem. It now asking for Freetype. I installed Freetype 2.4.8.

sudo port install freetype
Password:
---> Computing dependencies for freetype
---> Cleaning freetype

Now when I try to run my window application "ATCS Monitor" I get this error message.

err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x7bc616ce
Wine cannot find the FreeType font library. To enable Wine to
use TrueType fonts please install a version of FreeType greater than
or equal to 2.0.5.
http://www.freetype.org
err:x11drv:process_attach failed to load libX11.6.dylib: dlopen(libX11.6.dylib, 266): image not found
err:x11drv:process_attach failed to load libX11.6.dylib: dlopen(libX11.6.dylib, 266): image not found
err:module:attach_process_dlls "MSVBVM60.DLL" failed to initialize, aborting
err:module:LdrInitializeThunk Main exe initialization for L"C:\\Program Files\\ATCS Monitor\\atcsmon.exe" failed, status c0000005

Did I not install Freetype into Wine?
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Unable to register the DLL/OCX

Post by jjmckenzie »

On Tue, Jan 3, 2012 at 3:08 PM, spennisi <[email protected]> wrote:
I have successfully installed Wine 1.3.35 but now I have a new problem. It now asking for Freetype. I installed
Freetype 2.4.8.

sudo port install freetype
Password:
--->  Computing dependencies for freetype
--->  Cleaning freetype

Now when I try to run my window application "ATCS Monitor" I get this error message.

err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x7bc616ce
Wine cannot find the FreeType font library.  To enable Wine to
use TrueType fonts please install a version of FreeType greater than
or equal to 2.0.5.
http://www.freetype.org
You need to log out and back in after installing Freetype.
err:x11drv:process_attach failed to load libX11.6.dylib: dlopen(libX11.6.dylib, 266): image not found
err:x11drv:process_attach failed to load libX11.6.dylib: dlopen(libX11.6.dylib, 266): image not found
This indicates that something is not correct with your X11 install.
Which version of X11 are you using, Apple or XQuartz>
err:module:attach_process_dlls "MSVBVM60.DLL" failed to initialize, aborting
winetricsk vb6run (you need the Visual Basic 6 runtimes installed
through the winetricks script.)
err:module:LdrInitializeThunk Main exe initialization for L"C:\\Program Files\\ATCS Monitor\\atcsmon.exe" failed,
status c0000005

Did I not install Freetype into Wine?
You do not install Freetype into Wine, it is installed wherever you
installed MacPorts to. Wine should be able to 'find' Freetype and use
it. I use Fink and I have to log out and back in whenever I install
or update this program to get the new files to 'load'.

James
User avatar
André H.
Moderator
Moderator
Posts: 202
Joined: Sun Dec 07, 2008 8:33 am

Re: Unable to register the DLL/OCX

Post by André H. »

jjmckenzie wrote:
err:module:attach_process_dlls "MSVBVM60.DLL" failed to initialize, aborting
winetricsk vb6run (you need the Visual Basic 6 runtimes installed
through the winetricks script.)
No, look closer, it failed initializing, therefor it must exist. It most likely fails due to the errors before.
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Unable to register the DLL/OCX

Post by jjmckenzie »

On Thu, Jan 5, 2012 at 10:41 AM, André H. <[email protected]> wrote:
jjmckenzie wrote:
err:module:attach_process_dlls "MSVBVM60.DLL" failed to initialize, aborting
winetricsk vb6run (you need the Visual Basic 6 runtimes installed
through the winetricks script.)
No, look closer, it failed initializing, therefor it must exist. It most likely fails due to the errors before.
Hmmm. Something is not correct though. The OP did not state if the
VB6 runtimes were installed or not. The error shown is what happens
when VB6 is not installed (or so that is how it appears in other
forum/mailing list entries where this was/is so.)
However, the real problem is that Freetype cannot be found even though
it was installed and that needs to be addressed by MacPorts as this
should not be happening.

James
spennisi
Level 1
Level 1
Posts: 7
Joined: Mon Dec 26, 2011 6:45 pm

Re: Unable to register the DLL/OCX

Post by spennisi »

err:x11drv:process_attach failed to load libX11.6.dylib: dlopen(libX11.6.dylib, 266): image not found
err:x11drv:process_attach failed to load libX11.6.dylib: dlopen(libX11.6.dylib, 266): image not found
This indicates that something is not correct with your X11 install.
Which version of X11 are you using, Apple or XQuartz>
I was using Apple XQuartz 2.6.3 but have just download and install XQuartz 2.7.1
err:module:attach_process_dlls "MSVBVM60.DLL" failed to initialize, aborting
winetricsk vb6run (you need the Visual Basic 6 runtimes installed
through the winetricks script.)
I have download Visual Basic 6 runtimes "vbrun60sp5.exe"
I am have issues getting vbrun60sp5.exe to install through winetricks.

sh winetricks vbrun60sp5
------------------------------------------------------
wine cmd.exe /c echo '%ProgramFiles%' returned empty string
------------------------------------------------------

Am I using the correct code to install vbrun60sp5.exe or do I have another issue?

P.S. Thanks for all the help you have given me so far.
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Unable to register the DLL/OCX

Post by dimesio »

spennisi wrote: Am I using the correct code to install vbrun60sp5.exe
No. It should be

Code: Select all

winetricks vbrun6
Winetricks will download the file for you.

For more information on how to use winetricks: http://wiki.winehq.org/winetricks
spennisi
Level 1
Level 1
Posts: 7
Joined: Mon Dec 26, 2011 6:45 pm

Re: Unable to register the DLL/OCX

Post by spennisi »

dimesio wrote:
spennisi wrote: Am I using the correct code to install vbrun60sp5.exe
No. It should be

Code: Select all

winetricks vbrun6
Winetricks will download the file for you.
Something else must be wrong I still get the error message.

winetricks vbrun6
------------------------------------------------------
wine cmd.exe /c echo '%ProgramFiles%' returned empty string
Bruno Jesus

Unable to register the DLL/OCX

Post by Bruno Jesus »

In fact it is "winetricks vb6run", not vbrun6.

Wine tricks will show this:
Executing w_do_call vb6run
Executing load_vb6run
spennisi
Level 1
Level 1
Posts: 7
Joined: Mon Dec 26, 2011 6:45 pm

Re: Unable to register the DLL/OCX

Post by spennisi »

Bruno Jesus wrote:In fact it is "winetricks vb6run", not vbrun6.

Wine tricks will show this:
Executing w_do_call vb6run
Executing load_vb6run
Thanks but it still didn't work

winetricks vb6run
------------------------------------------------------
wine cmd.exe /c echo '%ProgramFiles%' returned empty string
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Unable to register the DLL/OCX

Post by dimesio »

spennisi wrote:
Bruno Jesus wrote:In fact it is "winetricks vb6run", not vbrun6.

Wine tricks will show this:
Executing w_do_call vb6run
Executing load_vb6run
Bruno is right about the command; sorry about that. But winetricks should have responded with "Unknown arg" and displayed its help text when you used the wrong verb, so something else is wrong, too.
Thanks but it still didn't work

winetricks vb6run
------------------------------------------------------
wine cmd.exe /c echo '%ProgramFiles%' returned empty string
Someone else already reported this problem to winetricks.org: http://code.google.com/p/winetricks/iss ... ail?id=152
spennisi
Level 1
Level 1
Posts: 7
Joined: Mon Dec 26, 2011 6:45 pm

Post by spennisi »

Thanks for everyones help. I fixed my problem by removing ./wine and starting again with wine 1.2.3. I fixed my original issue

C:\windows\system32\wshom.ocx

Unable to register the DLL/OCX: RegSvr32 failed with exit code 0x1

by installing wsh56 with wintricks
Locked