Visual Basic 6 Enterprise Edition - Service Pack 5
Selected Test Results (selected in 'Test Results' table below)
What works
A decently complex application built with Visual Basic works well with Wine 1.1.41.
The following works:
- Applications using Microsoft Data Environment Instance 1.0
- Applications using ADODB (Testing)
- Applications using MSSQL via ODBC or via OLE DB
- Applications using MySQL via ODBC or via OLE DB
- Applications using 'Printer' class
- Applications using Crystal Reports 8.5 ActiveX
To get it working, I had to do the following:
1) Install 'mdac_typ' using 'winetricks' as the application was using Activex Data Objects (ADO) ADODB.RecordSet.
3) Install 'dcom98' using 'winetricks' as Wine 1.1.41
What does not
- A third party OCX control called ':) VB Skinner' (testing)
What was not tested
Pretty much everything else.
- A call to Visual Basic function 'DoEvents' make the application consume 100% cpu and not return in Wine 1.0.1.
-
When accessing fields with name in ADODB.RecordSet an error comes up
saying that the requested column is not found even though when
enumerating the fields collection, the column clearly exists. This
happened with Wine 1.0.1 and the bug was solved when Wine 1.1.26 was
installed.
Additional Comments
Installed VB6 sp3
This an open project.
If all of us contribute it will be beter every day!
1. Copy riched20.dll, riched32.dll, urlmon.dll, oleaut32.dll, and hhctrl.ocx from a working Windows XP installation to your Wine system32 directory. This will bypass the incomplete Wine richedit, HTML Help, and OLE automation implementations.
2. In your Wine configuration dialog, under the Libraries tab, set the following files to native:
hhctrl.ocx (You may have to type this one in instead of selecting it from the drop-down list)
oleaut32
riched20
riched32
urlmon
And set these to builtin:
ole32
rpcrt4
3. Set the Windows emulation to Windows ME
4. Run the installer normally, ignoring the OLE and Java error messages. If desired, the MSDN library can also be installed at this time. After installation, set the OS emulation back to Windows XP.
5. Open a terminal and browse to the Wine system32 directory. Execute the following command: wine regsvr32 comcat.dll (this will fix up the VB6 OLE subsystem)
6. As there will likely be no shortcuts generated by the install, generate a Linux shortcut to VB6.EXE
7. After VB has loaded, if the MSDN library was installed, go ahead and execute it by Help-->Contents. Wine will ask for Gecko; it must be installed for HTML Help rendering to work. If the automatic installation fails, you will have to manually extract the Wine Gecko cabinet file to your Wine directory--the winetricks script works well for this task. Note that Gecko does not render everything correctly, and it is very easy to crash the MSDN help system due to this fact. To minimize system instability, it is recommended to install the full help system instead of the minimal or typical installs.
Enjoy!
HOWTO
Alternate way to install VB6 under Wine 1.1.41 (develop version)
Linux Ubuntu 9.10
Wine 1.1.41
By waraltca. march 25/2010
1) add the wine repository to you ubuntu.
- On System>Administration>SoftwareOrigins
- Click on "OtherSoftware" Tab and click on add button.
- Paste ppa:ubuntu-wine/ppa on the textbox and click on AddSource.
- If an error is thrown, don't care about.
2) Install MDAC 2.8 and dcom98 from winetricks (http://wiki.winehq.org/winetricks)
3) Go to wine configuration>library TAB and make sure this dll are added.
- hhcrtl.ocx (este tienen que tieparlo, no aparece en la lista)
- odbc32
- odbccp32
- ole32
- oleaut32
- riched20
- riched32
- rpcrt4
- urlmon
4) Put ole32 and rpcrt4 to (buitin, native)
5) Set the Windows emulation to Windows ME
6) Install VB6 and don't care about the java installation error message you will receive.
regards.
The following comments are owned by whoever posted them. WineHQ is not responsible for what they say.
Appeears "Out of Memoty" when load winsock.ocx, and others componentes
by Bene on Sunday July 25th 2010, 13:58
Hi people.
I installed Visual Basic 6 Professional edition and service pack 6.
Visual basic run ok, but when i try load to vb project the components winsock.ocx, Richtx32.ocx, Mshflxgd.ocx and others, appears "out of memory" error.
The error happens at Ubuntu 9.10 and 10.04, the version of wine is 1.2
Help!Help!
by Dakota on Tuesday June 29th 2010, 19:24
When I try to install VB6 Wine crashes. Wine Version : 1.1.38 Ubuntu Version 9.10
What went wrong?
Details :
Loads for 15 seconds.
No virtual desktop used.
wine 1.1.28 does not allow to load
by Juan on Thursday August 27th 2009, 17:10
Hello. Though I haven't had problems with old Wine versions. The version 1.1.28 does not allow to load "Microsoft Internet Controls" with VB6.
On having loaded the project, i have the following message:
'FilePath\shdocvw.dll' could not be loaded.
I try to load under Project --> Components --> shdocvw.dll, but I obtain the same message: 'FilePath\shdocvw.dll' could not be loaded.
I use Ubuntu 9.04 Jaunty.
Thank you very much to the friends of the Wine team. :-)
Juan.-
ocx-Problem
by Peter L. on Friday August 22nd 2008, 8:29
Hi,
With the new wine version 1.1.2 I can create executable files
of simple projects (form with an button and message-dialog).
But I still have the problem, to load ocx-Files.
If there is an ocx-entry in the project-file, I will get the error
"Not enough memory" (original german-message: "Nicht genügend Speicher") at the beginning.
If I try to load a ocx-file in the open project, following error message will appear:
'C:\...\..file.ocx' can't be load (orignal german-message: "'C:\...\..file.ocx' konnte nicht geladen werden")
Current wine version: wine-1.1.2~winehq0~ubuntu~8.04-2-0ubuntu1
RE: ocx-Problem by Peter L. on
Friday August 22nd 2008, 8:40
RE: ocx-Problem by waraltca on
Thursday March 25th 2010, 13:34
Error
by Peter L. on Monday June 16th 2008, 9:05
Hi,
if I want to create a executable from the current project,
I alway get the error message
"Not enough memory" (orginal german-message: "Nicht genügend Speicher")
RE: Error by waraltca on
Thursday March 25th 2010, 13:36
Data Enviroment objects
by Andres Rivas on Wednesday April 23rd 2008, 12:30
Hi!
I installed Visual Basic following this howto,however, when I install the sp6, an error saying: error in module ~ from object ~"(original in spanish : error en el modulo ~ del objeto ~), also i cant register or use any data enviroments, its says: "unnexpected error", then "System error &H80004005" then does nothing
Professional Doesn't run?
by Andrew Sachen on Thursday February 21st 2008, 13:46
I got VB6 Professional to install, and then Service Pack 6 to upgrade, but when I try to run it crashes before it can give me the New Project window. Through Konsole, I get
Run VisualBasic from an installed version
by Joerg Schiermeier on Friday January 25th 2008, 12:13
Hello!
I had VisualBasic installed under Windows XP pro (32-bit) some weeks ago. Under Windows it was working. My installation still exist now but I don't Windows anymore.
Is there a way to run this installation under wine?
I use wine v0.9.50.
Would somebody like to describe me how to do this? Or is it not possible?
plz help
by nardhar mure on Wednesday June 6th 2007, 8:53
i installed wine, then i try to run the installer from the cd and i get this error
wine: Unhandled page fault on read access to 0x00000000 at address 0x411cf9 (thread 0009), starting debugger...
does anyone know what it is? or what did i do wrong? plz help, im new in linux
(by the way i have ubuntu-feisty)
Easy howto install
by Sebastian Lezica on Sunday June 18th 2006, 20:57
1) Install IE6 with the IEs4Linux installer.
2) Rename the ~/.ie4linux folder to ~/.wine
3) Run the VS6 installer (this fail in the middle of the VM upgrade, don\'t worry).
4) do a \'wineboot\'.
5) Run the installer again, and select the the product installation for the VB.
6) Install the VB6 SP6.
The IEs4Linux default settings have a big DLL overrides list. If you like to only use that in the VB executables, remember to do that in all the executables on the drive_c/Program Files/Microsoft Visual Studio/VB98.
Install and whats different?
by Johan on Friday September 9th 2005, 13:25
1. How do I install VB?
2. In one thread someone says VB wont work as usual in Linux. But more specific whats different/doesn't work?
3. When I test run a project will it work?
I'm very new to Linux, trying to convert.
Please help.