Cannot install Visual C++ version 6.0 (VC6)
Cannot install Visual C++ version 6.0 (VC6)
I am using Ubuntu 8.10 and Wine 1.1.8 and installed VC6 from a folder VC6 copied from the installation CD.
I clicked the setup.exe file in the VC6 folder and the first page of the VC6 installation wizard showed, but when I clicked 'Next' the install failed with message:
"ken@ken-desktop:~/Desktop/VC6$ wine setup.exe
wine: Unhandled page fault on read access to 0x00000000 at address 0x411799 (thread 0009), starting debugger..."
Before trying 1.1.8, I used Wine 1.0.1 and it failed with the same message.
I Googled and found that the install failure was reported as a bug 2006, but the Wine application database shows that people have successully installed and used VC6 from Wine 1.1,5 (but not on Ubuntu).
I didn't have any luck installing though, so would be grateful for advice.
P.S. I have successfully installed and used other Windows apps, some very heavily GUI-laden with animation and sound, so the basic Wine install is working both with 1.0.1 and 1.1.8.
I clicked the setup.exe file in the VC6 folder and the first page of the VC6 installation wizard showed, but when I clicked 'Next' the install failed with message:
"ken@ken-desktop:~/Desktop/VC6$ wine setup.exe
wine: Unhandled page fault on read access to 0x00000000 at address 0x411799 (thread 0009), starting debugger..."
Before trying 1.1.8, I used Wine 1.0.1 and it failed with the same message.
I Googled and found that the install failure was reported as a bug 2006, but the Wine application database shows that people have successully installed and used VC6 from Wine 1.1,5 (but not on Ubuntu).
I didn't have any luck installing though, so would be grateful for advice.
P.S. I have successfully installed and used other Windows apps, some very heavily GUI-laden with animation and sound, so the basic Wine install is working both with 1.0.1 and 1.1.8.
The easiest way is to use winetricks.
http://wiki.winehq.org/winetricks
Code: Select all
wget http://www.kegel.com/wine/winetricks
sh winetricks vcrun6
I ran sh winetricks vcrun6, but it did not make any change. The VC6 install failed like before.
I am in the process of moving away from Windows and am not yet comfortable with the Ubuntu commandline, apt package installers etc, so here is what I did:
ken@ken-desktop:~$ sh winetricks vcrun6
Executing wine /home/ken/.winetrickscache/vc6redistsetup_enu.exe /T:C:\winetrickstmp /c
Executing cabextract /home/ken/.winetrickscache/vcredist.exe
Extracting cabinet: /home/ken/.winetrickscache/vcredist.exe
extracting VCRedist.inf
extracting PreSetup.exe
...
extracting W95INF32.DLL
extracting W95INF16.DLL
After that tried to install VC6 from command line by:
ken@ken-desktop:~/Desktop/VC6$ wine setup.exe
wine: Unhandled page fault on read access to 0x00000000 at address 0x411799 (thread 0009), starting debugger...
Unhandled exception: page fault on read access to 0x00000000 in 32-bit code (0x00411799).
I also used the Ubuntu GUI File Browser by right-clicking the VC6 setup.exe file and selecting 'Open from Wine' from the popup menu, but Wine exited without giving any error message when I clicked the 'Next' button in the VC6 installer.
winetrics extracted run-time dlls, but I could not find them by 'Search for Files' on the Ubuntu 'Places' menu (wanted to try 'file search' from the command line too, but didn't know what to type). I tried winetricks a second time, but was told that vcrun6 had already been installed.
Still hoping to install, but how to?
I am in the process of moving away from Windows and am not yet comfortable with the Ubuntu commandline, apt package installers etc, so here is what I did:
ken@ken-desktop:~$ sh winetricks vcrun6
Executing wine /home/ken/.winetrickscache/vc6redistsetup_enu.exe /T:C:\winetrickstmp /c
Executing cabextract /home/ken/.winetrickscache/vcredist.exe
Extracting cabinet: /home/ken/.winetrickscache/vcredist.exe
extracting VCRedist.inf
extracting PreSetup.exe
...
extracting W95INF32.DLL
extracting W95INF16.DLL
After that tried to install VC6 from command line by:
ken@ken-desktop:~/Desktop/VC6$ wine setup.exe
wine: Unhandled page fault on read access to 0x00000000 at address 0x411799 (thread 0009), starting debugger...
Unhandled exception: page fault on read access to 0x00000000 in 32-bit code (0x00411799).
I also used the Ubuntu GUI File Browser by right-clicking the VC6 setup.exe file and selecting 'Open from Wine' from the popup menu, but Wine exited without giving any error message when I clicked the 'Next' button in the VC6 installer.
winetrics extracted run-time dlls, but I could not find them by 'Search for Files' on the Ubuntu 'Places' menu (wanted to try 'file search' from the command line too, but didn't know what to type). I tried winetricks a second time, but was told that vcrun6 had already been installed.
Still hoping to install, but how to?
The most recent test in the AppDB says you also have to run winetricks dcom98 to install VC6.
http://appdb.winehq.org/objectManager.p ... ion&iId=31
http://appdb.winehq.org/objectManager.p ... ion&iId=31
It got worse after 'sh winetricks dcom98' with the Wine install not entering the VC6 install wizard (with the 'Next' button) any more. Here is an abbreviated console log:
ken@ken-desktop:~/Desktop/VC6$ wine setup.exe
err:module:DelayLoadFailureHook failed to delay load rpcrt4.dll.NdrClientInitializeNew
wine: Call from 0x7b845720 to unimplemented function rpcrt4.dll.NdrClientInitializeNew, aborting
err:module:DelayLoadFailureHook failed to delay load rpcrt4.dll.I_RpcExceptionFilter
wine: Call from 0x7b845720 to unimplemented function rpcrt4.dll.I_RpcExceptionFilter, aborting
wine: Unimplemented function rpcrt4.dll.I_RpcExceptionFilter called at address 0x7b845720 (thread 0009), starting debugger...
Unhandled exception: unimplemented function rpcrt4.dll.I_RpcExceptionFilter called in 32-bit code (0x7b845793).
Register dump:
.....
lots of info ending with:
err:module:DelayLoadFailureHook failed to delay load rpcrt4.dll.NdrFreeBuffer
wine: Call from 0x7b845720 to unimplemented function rpcrt4.dll.NdrFreeBuffer, aborting
In case the problem is dependent on PC speed, I am using a 2.5 GHz Pentium 4 with 2GB ram.
I checked the system32 directory. Most dlls reported as being extracted by sh winetricks vcrun6 are there, except atla.dll, atlu.dll, ADVPACK.DLL, W95INF32.DLL, W95INF16.DLL. atla.dll and atlu.dll are probably 'ascii' and and unicode versions. An atl.dll is present that may contain these functions.
The following are not present in system32: VCRedist.inf, PreSetup.exe and
50comupd.exe.
Wine 1.1.5 together with winetricks has been reported to be able to install VC6. I would like to try 1.1.5, but how do I get it? Only 1.0.1 and 1.1.8 are available for download on the Wine Website as far I can see.
I would also like to go back to 1.0.1 and issue sh winetricks vcrun5 dcom98 which I did not do last time. That means I need to uninstall 1.1.8 that I am using now and I don't want to leave anything behind. How do I do that?
ken@ken-desktop:~/Desktop/VC6$ wine setup.exe
err:module:DelayLoadFailureHook failed to delay load rpcrt4.dll.NdrClientInitializeNew
wine: Call from 0x7b845720 to unimplemented function rpcrt4.dll.NdrClientInitializeNew, aborting
err:module:DelayLoadFailureHook failed to delay load rpcrt4.dll.I_RpcExceptionFilter
wine: Call from 0x7b845720 to unimplemented function rpcrt4.dll.I_RpcExceptionFilter, aborting
wine: Unimplemented function rpcrt4.dll.I_RpcExceptionFilter called at address 0x7b845720 (thread 0009), starting debugger...
Unhandled exception: unimplemented function rpcrt4.dll.I_RpcExceptionFilter called in 32-bit code (0x7b845793).
Register dump:
.....
lots of info ending with:
err:module:DelayLoadFailureHook failed to delay load rpcrt4.dll.NdrFreeBuffer
wine: Call from 0x7b845720 to unimplemented function rpcrt4.dll.NdrFreeBuffer, aborting
In case the problem is dependent on PC speed, I am using a 2.5 GHz Pentium 4 with 2GB ram.
I checked the system32 directory. Most dlls reported as being extracted by sh winetricks vcrun6 are there, except atla.dll, atlu.dll, ADVPACK.DLL, W95INF32.DLL, W95INF16.DLL. atla.dll and atlu.dll are probably 'ascii' and and unicode versions. An atl.dll is present that may contain these functions.
The following are not present in system32: VCRedist.inf, PreSetup.exe and
50comupd.exe.
Wine 1.1.5 together with winetricks has been reported to be able to install VC6. I would like to try 1.1.5, but how do I get it? Only 1.0.1 and 1.1.8 are available for download on the Wine Website as far I can see.
I would also like to go back to 1.0.1 and issue sh winetricks vcrun5 dcom98 which I did not do last time. That means I need to uninstall 1.1.8 that I am using now and I don't want to leave anything behind. How do I do that?
If a particular version is not in your distro's repository, you will have to build Wine from source.resander wrote:
Wine 1.1.5 together with winetricks has been reported to be able to install VC6. I would like to try 1.1.5, but how do I get it? Only 1.0.1 and 1.1.8 are available for download on the Wine Website as far I can see.
http://winehq.org/site/docs/wineusr-gui ... ine-source
http://wiki.winehq.org/Recommended_Packages
http://wiki.winehq.org/WineOn64bit
http://wiki.winehq.org/FAQ#head-2e99ab6 ... b2d5839586I would also like to go back to 1.0.1 and issue sh winetricks vcrun5 dcom98 which I did not do last time. That means I need to uninstall 1.1.8 that I am using now and I don't want to leave anything behind. How do I do that?
http://wiki.winehq.org/FAQ#head-9893ae5 ... af2e69b391
It works!
The remedy is to choose Windows 98 for Windows versions for Default Settings in the Applications tab of WineConfig.
Before realizing this I had uninstalled Wine 1.1.8 and put 1.0.1 back. After sh winetricks vcrun6 dcom98 the VC6 install was still failing as before.
I think the VC6 install will probably work for all versions after Wine 1.0.1 when Win98 is selected. Also, dcom98 may only be needed if you use Microsoft's COM technology (my guess).
Does VC6 work? Maybe - so far it looks good. I compiled files from a project already ported from Windows to Ubuntu and used the project source files in situ on Ubuntu without change. The project contains 35 files and only 3 failed to compile because I had already converted these to platform-dependent Linux code. Hopefully, it will run too when I convert these back to Windows code.
I will report how I installed and the outcome of the port(s) (there are more apps to get across to Linux) in the applications database for VC6.
The remedy is to choose Windows 98 for Windows versions for Default Settings in the Applications tab of WineConfig.
Before realizing this I had uninstalled Wine 1.1.8 and put 1.0.1 back. After sh winetricks vcrun6 dcom98 the VC6 install was still failing as before.
I think the VC6 install will probably work for all versions after Wine 1.0.1 when Win98 is selected. Also, dcom98 may only be needed if you use Microsoft's COM technology (my guess).
Does VC6 work? Maybe - so far it looks good. I compiled files from a project already ported from Windows to Ubuntu and used the project source files in situ on Ubuntu without change. The project contains 35 files and only 3 failed to compile because I had already converted these to platform-dependent Linux code. Hopefully, it will run too when I convert these back to Windows code.
I will report how I installed and the outcome of the port(s) (there are more apps to get across to Linux) in the applications database for VC6.
Getting nearer...
So far, I have tried four projects from Windows to Linux/Wine. All compiled using VC6 on Wine and ran ok the first time. The two largest contained 78 and 105 cpp files with approximate source file sizes 2GB and 5GB.
Features used:
GUI: all standard and extended controls via dialog calls/macros
and CreateWindow, various window positioning/resizing functions,
messageboxes
GDI: most except paths
CHARS: most functions defined by <tchar.h>
FILES: fopen,fread, fwrite, ftell, fseek, fclose, _findfirst,
_findnext, _mkdir, remove, _tunlink
MEMORY new,delete and most memory and <string.h> functions.
Did not use MFC or ATL frameworks, just plain, Windows API functions
and as few of these as I could manage.
Did not use Windows file and directory functions.
Did not use c++ exception handling
Did not use Windows memory allocation function or older mallocs.
BUT
could not get the debugging to work.
1. on entry to the Windows main program:
int PASCAL WinMain( ...)
{
WNDCLASS wc;
MSG msg;
int a = 1; // for testing debug
int b = a + 1 ; // testing debug
hmodule = fhInstance ; <<< put breakpoint here
Values of variables a and b were reported as unknown expressions.
2. a little bit further into WinMain at call to CreateWindow for
main window:
hwndmain = CreateWindow( "GenericAppClass", ....
The program entered CreateWindow, but never returned.
Does debugging work, or have I entered unchartered waters?
So far, I have tried four projects from Windows to Linux/Wine. All compiled using VC6 on Wine and ran ok the first time. The two largest contained 78 and 105 cpp files with approximate source file sizes 2GB and 5GB.
Features used:
GUI: all standard and extended controls via dialog calls/macros
and CreateWindow, various window positioning/resizing functions,
messageboxes
GDI: most except paths
CHARS: most functions defined by <tchar.h>
FILES: fopen,fread, fwrite, ftell, fseek, fclose, _findfirst,
_findnext, _mkdir, remove, _tunlink
MEMORY new,delete and most memory and <string.h> functions.
Did not use MFC or ATL frameworks, just plain, Windows API functions
and as few of these as I could manage.
Did not use Windows file and directory functions.
Did not use c++ exception handling
Did not use Windows memory allocation function or older mallocs.
BUT
could not get the debugging to work.
1. on entry to the Windows main program:
int PASCAL WinMain( ...)
{
WNDCLASS wc;
MSG msg;
int a = 1; // for testing debug
int b = a + 1 ; // testing debug
hmodule = fhInstance ; <<< put breakpoint here
Values of variables a and b were reported as unknown expressions.
2. a little bit further into WinMain at call to CreateWindow for
main window:
hwndmain = CreateWindow( "GenericAppClass", ....
The program entered CreateWindow, but never returned.
Does debugging work, or have I entered unchartered waters?