I have a VB6 legacy program which I need to change. I am unable to run the program from the IDE. When I activate one of the forms in the IDE I get an error which refers me to an
Having come across this question, and tried all the answers without success, I thought I'd add an additional piece of information that solved the issue for me.
The problem appears to be linked to a Windows 7 update pack. A colleague running a slightly out of date version of the OS managed to get our VB6 projects working fine, but my new machine with an up-to-date Win7 install had this problem.
Anyway, the solution is this:
Locate regtlibv12.exe
(it's normally in C:\Windows\Microsoft.NET\Framework\[version]
.. e.g. C:\Windows\Microsoft.NET\Framework\v4.0.30319
if that's what you've got installed)
Run a command prompt as administrator and navigate to that files' location
Execute regtlibv12.exe C:\Windows\SysWOW64\msdatsrc.tlb
for 64bit windows
regtlibv12.exe C:\Windows\System32\msdatsrc.tlb
for 32bit windows.