Під час інсталяції Visual Basic 6 на Windows 7 спочатку з’являється попередження про сумісність, а потім інсталяція неочикувано завершується з помилкою. Це виникає тому що Visual Basic має проблеми сумісності з на Windows 7.
Для інсталяції потрібно:
- Перед початком інсталяції створити порожній файл нульової довжини, котрий розташований у C:\Windows і називається MSJAVA.DLL. Процес інсталяції буде шукати цей файл і якщо його немає, спричинить інсталяцію дуже старої версії Java, та вимагатиме перезавантаження комп’ютера. А створення файлу нульової довжини дозволить обійтись без інсталяції Java.
- Вимкнути службу захисту користувачів (UAC- user access control). Щоб відкрити UAC, треба клацнути кнопку Пошук. У поле пошуку введіть uac, а потім виберіть пункт "Змінити параметри служби захисту користувачів".
- Перейти в директорію, де розташований дистрибутив, знайти SETUP.EXE, натиснути праву кнопку і вказати Run As Administrator.
- На всі наступні попередження про сумісність (Program Compatibility Assistant), натиснути Run Program.
- Вказати, що приймаєте угоду "I accept agreement", а потім Next.
- Вказати ім’я та інформацію про компанію, натиснути Next.
- І так далі.
Під час інсталяції може виникнути помилка з повідомленням
"couldn't find ACME setup"
Це може бути з причини інсталяції з мережевої або іншої некореневої теки. Для вирішення проблеми треба скопіювати теку з дистрибутивом у корінь диску, наприклад D:
Поради з інсталяції знайшов тут
https://stackoverflow.com/questions/10495680/installation-of-vb6-on-windows-7-or-windows-8-or-windows-10
http://geekswithblogs.net/bosuch/archive/2010/11/16/installing-visual-basic-6.0-on-windows-7.aspx
Поради з вирішення помилок знайшов тут
https://www.codeproject.com/Questions/1119199/How-fix-the-error-message-saying-couldnt-find-ACME
Помилка компоновщика
LINK : fatal error LNK1158: cannot run "cvtres.exe"
Вирішення:
I've found out the cause of my problem: I had specified a network drive
as the destination for my *.exe file. When I specified a local
destination for the compiled file everything ran perfectly, even with
no copy of cvtres.exe in my VB98 directory.
We are running Microsoft networking software, but clearly there is some
kind of problem here.
Станом на 2020 рік поради з інсталяціїї VB6 на Windows 10/11
https://learn.microsoft.com/en-us/answers/questions/1695172/how-install-visual-basic-6-on-os-windows-11
https://www.vbforums.com/showthread.php?852227-Installing-the-VB6-IDE-on-Windows-10-64-bit
Installing the VB6 IDE on Windows 10 - 64 bit.
(last edited 11/25/2020)
Before Starting
If you have previously attempted and failed to install the VB6 IDE on your computer, you may want to take a look at Dan Brust's blog. It has a fairly comprehensive list of all the places (including the registry) where the VB6 IDE places critical things.
Quickly look over the Glossary part of this thread (next post).
You should be logged into your computer with an account that's a local administrator.
During the installation, you may want to turn off UAC in your registry. However, turning it off in Control Panel may be adequate. If you wish to completely disable the UAC (via registry), this post by one of our moderators instructions you on how to do it. That post was written with reference to Windows Vista, but it still works for Windows 10. Just as a further FYI on this one, some claim that there is no need for this, and that Windows 10 will install the VB6 IDE just fine without tampering with the UAC settings (see post #28 below).
During the installation, you may also want to disable any virus scanner (including Windows Defender). If you're nervous about your particular copy of the VB6 IDE, I'd highly recommend that you scan all the individual files before starting the installation. However, I've never known of any virus type problems with the VB6 IDE that came off of legitimate copies of the Microsoft CDs.
You will want to make a zero-byte file named MSJAVA.DLL and then copy it to your C:\Windows folder. This is a very old DLL that hasn't been used for many years, but the VB6 IDE install disks still attempt to install it. It's entirely unnecessary. Also, apparently, not all versions of the VB6 IDE have this Java issue. However, during installation you should be sure to un-check the "Update Microsoft Virtual Machine for Java" checkbox. That option is entirely unnecessary. (Also, as an alternative, you may want to look at Krool's post #65 in this thread.)
Getting Started with Installation
When you get to the "Options", you should always select "Custom". Once there, you should always highlight the "Data Access" option and click the "Change Options" button. Once in that section, select the "ADO, RDS, and OLE DB Providers" option, and click "Change Options" again. Once into that level, un-check the "ADO and RDS" option. There is absolutely no need for this, as contemporary data accessing options are pre-installed on Windows 10. Also, selecting this option causes certain other problems.
As far as I know, all the other options can be installed at your discretion.
With respect to the MSDN, I haven't heard of any problems getting it installed. It's your discretion whether or not you install it. However, if you don't, your F1 help within the IDE will not be available.
After VB6 IDE is Initially Installed
Once the VB6 IDE is initially installed, you should immediately install the VB6 Cumulative Service Pack 6 (SP6). It's still available from Microsoft and can be downloaded here. As a note, SP6 is a "cumulative" update. As such you need not be concerned with SP5 or any earlier VB6 service pack.
There are differing opinions regarding the shims (compatibility settings) that are needed to execute the VB6 IDE for development purposes. Some say to use the "Windows Vista (Service Pack 2)" compatibility, and also check the "Run as Administrator" box. However, Dilettante has discussed these issues in detail on this thread. It's worth a read. And, you may need to know that the actual VB6.EXE executable is found in the C:\Program Files (x86)\Microsoft Visual Studio\VB98 folder.
Some have also reported problems with a TypeLib named msdatsrc.tlb. On Windows 10 64-bit, this should be found in the C:\Windows\SysWOW64 folder. The way I've solved this problem is to open a Command window (Run, CMD), navigate to this C:\Windows\SysWOW64 folder, and then register this TypeLib with a command similar to the following: regtlib msdatsrc.tlb (Just as an FYI, this msdatsrc.tlb should be found in the C:\Windows\System32 folder on 32-bit Windows systems.) Other discussions of this msdatsrc.tlb file can be found here and here.
Another problem (and nice fix) is as follows. On later versions of Windows, you occasionally get a "Method '~' of object '~' failed" message when starting the IDE. This is just a glitch that sometimes happens and can virtually always be ignored with no harm. However, if you get tired of it, you can go into the C:\Program Files (x86)\Microsoft Visual Studio\VB98 folder and rename (or delete) the file named DATAVIEW.DLL. This is an old way to view old databases from within the VB6 IDE, and is extremely seldom used in contemporary development. This isn't the only thing that causes the "Method '~' of object '~' failed" message, but my guess is that it's responsible for more than 90% of them, and this simple rename completely stomps out the issue.
VB6 IDE Limitations/Problems
(This list is limited to problems introduced with Windows 10, mostly.)
Actually, this first problem has existed ever since mouse-wheels were introduced. The VB6 IDE doesn't natively support the mouse-wheel. However, there are a few different systray type programs that fix this problem. The X-Mouse Button Control is a particularly good solution to this. (Thanks to Dilettante for this find.) Set up a "Layer" for VB6 with "Scroll Method: Method 1" and you're good to go (and works perfect in a split code window). Other options are listed below (and elsewhere in these forums).
When in design mode, the control resize handles don't necessarily work correctly. This is particularly true when multiple controls are selected. However, it's also sometimes true for single controls. Also, for some strange reason, the exact behavior of these control handles doesn't seem to always be consistent from one VB6 IDE execution to the next. And the handles (small squares) are placed on the desktop rather than confined to the VB6 forms. And related, the selection rectangle also doesn't always work correctly; specifically, it's just sometimes gone.
When loading a very large project (and sometimes on smaller ones too), the VB6 IDE will hang during the project's loading process. Typically, killing the IDE from task manager and then re-loading the project will work fine. Fortunately, once a project is loaded, the VB6 IDE seems to be quite stable (unless, of course, you're using API calls incorrectly or ending during subclassing, but those things have given the IDE problems regardless of the OS version).
Additional Resources for Installing the VB6 IDE
Giorgio Brausi's VB6 IDE installer.
Article by Derek Wirch.
Raymond's page on installing VB6 on Windows 10
Коментарі
Дописати коментар