I don't see where you installed service pack six. That is important to do.
Printable View
I don't see where you installed service pack six. That is important to do.
:) What's in the shims?
@TysonLPrice: That's the Vs6sp6B.exe package.
@yereverluvinuncleber: Here's a screenshot of what's in that .SDB file:
Attachment 165523
As often stated, it's inadvisable to set one of the compatibility groups, as they fix certain things and break others. The above shims are all you need to get VB6 running quite well on Win10.
EDIT1: And nothing is needed for a compiled VB6 program. This is only needed for the IDE to run smoothly.
EDIT2: And as a further FYI, with Win10, we lose the handles when multi-selecting controls on a form in design mode. We can still multi-select ... we just don't get to see what was selected. And also, when you first load the IDE, there's often a small (sort of minimized) form in the middle of the screen. That's just something in the bowels of the VB6 IDE. If you minimize, and then re-normalize the IDE, that little form will be gone (i.e., hidden). I've learned to ignore both of these, and am still thrilled that the IDE works as well as it ever did.
First class, thankyou very much.
Installing: VB6 Enterprise Edition CD:
I've tried installing VB6 on to my new installs of W7 & W10.
I have the following problems/queries...
1: As I have the Enterprise Edition,
Q1: Do I need to install the empty file: MSJAVA.DLL ?
(NB: See posts 36,37,38)
2: In Post 1, at Heading: Before Starting, para 6 says...
'...However, during installation you should be sure to un-check the "Update Microsoft Virtual Machine for Java" checkbox. That option is entirely unnecessary.'
But if I do this, it then it disables its [Next] button, and clicking its [Exit] button, terminates the install!
However:
a: Post 4 says:
'The Enterprise version does not have the java issue.
(Q2: So what does this mean? Do I tick to update Java, or what?)
Just need to custom install and under data access uncheck the ado/ole/rds option
once installed set the IDE to run as admin
should work fine, On other version once past the java message should be the same as above.'
b: Post 22, shows a way round this, but I'm not at all sure how to do that!?
(Q3: If I need to do this, can you explain how?)
3: Your Steps 2 & 3, says:
'Copy my folder named "Files from Root of CD", from a VB6-Pro CD.'
'Execute the Setup.exe from above folder.'
Q4: So do I have to copy my CD's contents to a folder on my PC?
Can't I just 'Execute the Setup.exe' from the CD?
4: Your Steps 7,8,9:
Post 5 says: He 'installed Professional edition', and 'I run the IDE as administrator and no shims or whatsoever.'
Q5: Do I need the Shims?
5: Your Step 9:
Q6: What does this mean?
Many thanks.
Hi macmacmac,
Q1 & Q2: My latest installs have been the Professional (not Enterprise) edition, so I'm not entirely sure about the Java checkbox. However, it should never hurt to create the zero-byte MSJAVA.DLL and then stick it in your C:\Windows folder. So, I'd just always do it. Regarding unchecking Java, if you can't proceed with it unchecked, then just check it and proceed (making sure the zero-byte MSJAVA.DLL was done before doing that).
Q3: I think we're now talking about the "ADO and RDS" option. You should always uncheck this, as directed. The rest of the options really don't matter, and are your preference.
Q4: No, you don't have to copy your CDs. You can install directly from them if you like. The only reason that's mentioned is because there have been several reports of CDs going bad or getting damaged.
Q5: Yes, I would say that you need shims. If you try and use the compatibility settings (i.e. large-shim-groups), you will fix some things and break others. Specifically, it seems that using any level of the compatibility settings breaks the Shell command (and the ShellExecute API call). There may be other things broken as well. And, if you don't use anything, VB6 struggles and becomes sluggish because of some of the desktop composition settings. Therefore, a couple of shims do seem necessary. I believe instructions on how to do this are well discussed above.
Q6: "Drug the VB6_IDE_Shims.sdb onto the Install_Shims.cmd file." Is that what we're talking about? If so, it just means to open a copy of Windows Explorer, and then drag the VB6_IDE_Shims.sdb shims database file and drop it onto the Install_Shims.cmd file, such that the Install_Shims.cmd is executed with the VB6_IDE_Shims.sdb as a command line argument. Another way to say this is that you're using the Install_Shims.cmd as a program to open/install the VB6_IDE_Shims.sdb shims database. You could open a command prompt and do it, but doing it with Windows Explorer is easier.
Good Luck,
Elroy
Elroy: Thanks for your earlier rely.
So I tried installing into W7, without success...
1: Earlier I added the empty file: MSJAVA.DLL
2: I rebooted W7, and inserted the CD, and clicked the install popup.
3: I get a popup telling me that there are known compatibility issues, and offering me the options to go online for further info, but no info comes up.
4: So I click its [Run Program] button.
5: I accept its license agreement.
6: Enter product number/ID
7: Select Custom install
8: I get another popup telling me that there are known compatibility issues,
and I click its [Run Program] button.
9: Product ID number is displayed.
msg: Setup is searching for installed components
10: After awhile its page header says (not responding)
I terminate the install and tried again...
and after step8 above, I get a popup that says:
Setup could not remove file: C:\Windows\vssetup.ttf
I try clicking its buttons several times eg: [Retry] & [Ignore]
msg: Setup has been corrupted. A NULL Window handle argument was passed to UIStartDlg
I tried again several times, but get a similar outcome.
Hi macmacmac,
The first thing that comes to mind is to make sure that you're running as an Administrator on whatever machine you're on.
And yes, those compatibility warnings are a nuisance, and everyone just ignores them, clicking through them.
The "Setup is searching for installed components" is a bit of a mystery. You might see if VB6 is listed in your Control Panel programs list. If it is, try uninstalling it before another installation attempt. I've never gotten into a situation where things were so borked that I needed to do this, but Dan Brust has a blog where he talks about "uninstalling" VB6 "the hard way". You may want to specifically focus on that stuff in the Remove Any Remnants section.
Dan also has a VB6 installer, but I've never used it. I hear your problems, but I've always managed to get it going with the Setup.exe by just continually kicking it. I've installed on about every Windows OS there is through the years (95 forward).
Notice: Others are certainly welcome to reply if they've had a problem similar to this.
Best of Luck,
Elroy
Hello,
I have followed the steps as provided above except
•I took my VB6_IDE_Shims.sdb file and placed it into C:\Program Files (x86)\Microsoft Visual Studio\VB98 folder.
•Also copied a file I've got named Install_Shims.cmd into that folder.
•Drug the VB6_IDE_Shims.sdb onto the Install_Shims.cmd file.
I am getting an error as attached in the file. Please guide me as the windows 7 laptop that has VB6 will be taken away from me.
That looks like an existing project...can you create a new, basic "Hello World" project, that runs properly or does everything crash?
May I please share the code and the project references. Please can you check and advise if this is not related to installation.
The same code works in the first instance and crashes when executed again immediately.
Better start a new thread, this is about installing VB6 on W10.
Your VB6 environment seems to be working fine.
For your project all needed components and references are available.
The project works the first time you start it, but crashes on a second run.
So something else is happening.
I recommend using Gibra's Visual Studio 6.0 Installer Wizard.
http://nuke.vbcorner.net/Home/tabid/...S/Default.aspx
It is worth reading the Help file http://www.vbcorner.net/vs6installer/index.htm
You need to read the thread from its inception, I get the feeling you haven't done this at all. Start from the beginning and simply read to absorb.
Your best bet to get VB6 professional edition CD is from eBay or Amazon.
Excellent guide - got me up and running very quickly.
Just a wee update that might be useful for other users installing VB6 on Windows 10 64-bit...
One of my projects used non-standard Controls (THREED32.OCX from Sheridan Software).
This file is available on the VB6 CD-ROM, in the folder \Common\Tools\vb\Controls.
Copy THREED32.OCX to C:\Windows\SysWOW64, and register in an elevated-command prompt REGSVR32 THREED32.OCX.
Ensure that 'Sheridan 3D Controls' is ticked in VB6 - Project - Components - Controls Tab
However, when you load a project that uses these non-standard controls you may see the following error message...
"License information for this component was not found. You do not have an appropriate license to use this functionality in the design environment."
Fortunately, you can register the licence for these controls by double-clicking vbctrls.reg from the same folder on the VB6 CD-ROM where you found the Controls themselves.
And that's it. Simples!
Thanks again for a top guide :)
All, great information here - thanks for sharing! I'm getting ready to make the plunge on trying to install VB6 on Win10 64-bit. I was (of course) hoping for the path of least resistance, and planning to start out directly here: http://nuke.vbcorner.net/Home/tabid/...S/Default.aspx
Does anyone have any experiences to share with going this route?
There is a second way. Maybe you can include that also.
Edit the file called SETUPWIZ.INI and under the section called [setup wizard] change the entry for VmPath=ie4\msjavx86.exe, if this entry does not exist you can skip this step. We need to remove the value ie4\msjavx86.exe form this entry so it will create an empty environment variable during installation. This will stop the setup wizard from looking for and installing this very old version of MS Java on our system.
So at the end it should look like
Code:VmPath=
Krool, I made a note in the OP. Thanks for the tip.
I have two Visual Basic Pro disks. Neither has a folder named: "Files from Root of CD". The dates on their folders are:
6/28/1996
6/27/1998
How can I obtain the folder "Files from Root of CD"?
==== Edit:
Never mind -- I understand now that the folder named "Files from Root of CD" is just a saved copy of the contents of the VB6 CD.
I just successfully installed Visual Studio 6 Enterprise on Windows 10 64 bit and I used the instruction provided at the link below.
https://www.codeproject.com/Articles...dio-on-Windows
Vs6sp6B.exe is no longer being hosted by Microsoft we should put up a mirror with a confirmed hash
Why bother? Vs6sp6D.exe became available quite a long time ago (2013?).
I will take any link to any IDE service pack 6, I havent been able to find one. I had to pull an installer off of virus total :-\
regardless the links to whatever version this therad points to on MS are 404 "We're sorry, this download is no longer available. "
Vs6sp6B.exe is available on the Wayback machine:
Good luck.Code:https://web.archive.org/web/20060406052529/http://download.microsoft.com/download/f/0/3/f03c202d-1ce4-4267-9393-a8a4b400a982/Vs6sp6B.exe
You can still get SP 6B from: https://download.cnet.com/Service-Pa...-10726545.html
- Service Pack 6 for Visual Basic 6.0 (2004/3/25)
https://web.archive.org/web/20210413035615/https://www.microsoft.com/en-us/download/details.aspx?id=5721
- Service Pack 6 for Visual Basic 6.0, Visual C++ 6.0 with Visual Source Safe 6.0d (2004/3/25)
https://web.archive.org/web/20210323220808/https://www.microsoft.com/en-us/download/details.aspx?id=9183
- Service Pack 6 for Visual Basic 6.0: Run-Time Redistribution Pack (vbrun60sp6.exe) (2004/3/25)
https://web.archive.org/web/20210417132444/https://www.microsoft.com/en-us/download/details.aspx?id=24417
- Microsoft Visual Basic 6.0 Common Controls (2005/4/27)
https://web.archive.org/web/20210511202824/https://www.microsoft.com/en-us/download/details.aspx?id=10019
- Visual Basic 6.0 Service Pack 6 oleaut32.DLL Security Update (2008/2/12)
https://web.archive.org/web/20210131134547/https://www.microsoft.com/en-us/download/details.aspx?id=11782
- Microsoft Visual Basic 6.0 Service Pack 6 Security Rollup Update (2008/12/9)
https://web.archive.org/web/20200804142055/https://www.microsoft.com/en-us/download/details.aspx?id=7474
- Microsoft Visual Basic 6.0 Service Pack 6 Security Rollup Update (2012/4/5)
https://web.archive.org/web/20210619150312/https://www.microsoft.com/en-us/download/details.aspx?id=29326
- Microsoft Visual Basic 6.0 Service Pack 6 Security Rollup Update (2012/8/10)
https://web.archive.org/web/20201127064050/https://www.microsoft.com/en-us/download/details.aspx?id=30505
- Microsoft Visual Basic 6.0 Service Pack 6 Cumulative Update (2012/8/16)
https://web.archive.org/web/20210506040406/https://www.microsoft.com/en-us/download/details.aspx?id=7030
- Microsoft Visual Basic 6.0 Service Pack 6 Security Rollup Update (2016/1/8)
https://web.archive.org/web/20201030031830/https://www.microsoft.com/en-us/download/details.aspx?id=50722
Beware of the security rollup and cumulative updates; according to dilettante, they are riddled with bugs.
Hello,
How do I download the installer at http://nuke.vbcorner.net/VS6Installe.../Default.aspx? The download link produces no action.
Thanks in advance.
One important precursor to any installation of the VB6 IDE that I always perform is the registration of the legacy type lib msdatsrc.tlb
This command run from an elevated console:
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\regtlibv12.exe msdatsrc.tlb
This prevents errors when attempting to add a user defined control OCX to the VB6 IDE.
When this typelib is not registered, dropping an OCX onto the VB6 tool box results in this error:
"object not registered"
I have my own personal installation instructions that have this highlighted as a precursor. It is so easy to forget the solution for such nondescript errors as that shown above.
This seems to be required on Windows 7 and above but I have only tested it on Win 7 and 10.
Hello Elroy,
I have used several procedures posted in web even using VS6Installer without success.
Fortunately yours it succeeded !
Any idea to install properly MSDN ?
Hi,
Re: VB6 Pro & Enterprise edition:
There's no Compatibility Tab shown,
when I right-click on its SETUP.EXE file > Properties
Q: So how do I rectify this?
NB: I've searched online but found no solution.