12

After installing VB6 successfully on my Windows 8.1 64bit pc, whenever i am trying to open my .vbp project file it gives me an error can't find DAO350.dll file. Googled for every possible solution but couldn't find one.

enter image description here

Please help me.

[UPDATE]

enter image description here

[UPDATE1]: It looks something like thisenter image description here

Steve
  • 522
  • 3
  • 12
  • 28

4 Answers4

15

The DA0350.dll must be registered. Try this:

On the Visual Basic 6.0 CD (or whatever your installation source is), locate the Dao350.dll file, and then copy it to the directory c:\program files\common files\microsoft shared\DAO. (The Dao350.dll file is located in the \os\system folder on the Visual Basic 6.0 CD.)

To register this file, click Start, click Run, and then type or paste the following line:

Regsvr32 "c:\program files (x86)\common files\microsoft shared\DAO\Dao350.dll"

Update:

The VB6TMPL.TLB is probably not installed for your current user. Try to run Visual Basic as administrator and/or try this: http://support.microsoft.com/kb/262976/en-us

StayOnTarget
  • 11,743
  • 10
  • 52
  • 81
Ben Pi
  • 241
  • 2
  • 9
  • Thats where i am confused. In my PC, c:\program files\common files\microsoft shared\DAO , the `DAO` folder is missing. What should i do.? – Steve Dec 09 '14 at 11:18
  • I'd try adding the folder. – Ben Pi Dec 09 '14 at 11:26
  • 1
    Wrong directory, it needs to be `c:\program files (x86)`. And it needs to be the 32-bit version of Regsvr32, located in c:\windows\syswow64. And needs to be executed from an elevated command prompt. – Hans Passant Dec 09 '14 at 11:26
  • So @HansPassant you mean that i should run `Regsvr32 c:\program files (x86)\common files\microsoft shared\DAO\Dao350.dll` from cmd(with administator rights) ? – Steve Dec 09 '14 at 11:33
  • I missed the x64 part, sorry. What Hans said. :) – Ben Pi Dec 09 '14 at 11:33
  • Ok. My bad forgot to put "" with the statement. Correct statement was `Regsvr32 "C:\program files (x86)\common files\microsoft shared\DAO\Dao350.dll"`. But after that when i run my `.vbp` file, it gives me some different error. Pasting it in UPDATE part. – Steve Dec 09 '14 at 11:41
  • Please check the key in registry path "HKEY_CLASSES_ROOT\TypeLib\{FCFB3D2E-A0FA-1068-A738-08002B3371B5}\6.0\9\win32". Does it point to the location where your "vb6.olb"-file is located? – Ben Pi Dec 09 '14 at 12:14
  • The key looks good. Does the file exist on that path? Also, what does happen if you start VB6 as administrator? – Ben Pi Dec 09 '14 at 12:21
  • That is an unspecific error about a missing binary. Does vb6 on load show that error and shut down or does it happen when you try to compile or run the project? Also, did you install the latest service pack for vb6? it can be found here: http://www.microsoft.com/en-us/download/details.aspx?id=5721. To be honest i am in the dark with the latest error. Maybe @HansPassant can help. – Ben Pi Dec 09 '14 at 12:57
  • I'd love to join you on chat but sadly i can't duo to company proxy restrictions. As you accepted the answer, is the problem solved? – Ben Pi Dec 09 '14 at 13:08
  • I doubt my boss will pay me for debugging support, sadly. Bad enough i'm answering on stackoverflow at all while at work. If you have specific issues just make another post. Someone will help you most likely (maybe me? who knows?) as vb6 is quite old and well known. – Ben Pi Dec 09 '14 at 13:29
1

To solve about "Can't find file DAO350.DLL"

  1. Download DAO350.DLL file from https://www.dll-files.com/dao350.dll.html
  2. Extract file DLL, then copy file DAO350.DLL to C:\Program Files (x86)\Microsoft Visual Studio\VB98 or any other place you install VB 6
  3. Try open your VB 6

Work for me.

1

From the command prompt, execute the following commands:

cd C:\Program Files (x86)\Common Files\Microsoft Shared\DAO
regsvr32 dao350.dll

This should do it.

Elletlar
  • 3,136
  • 7
  • 32
  • 38
Nothoro
  • 21
  • 3
1

On the Visual Basic 6.0 CD (or whatever your installation source is), locate the Dao350.dll file, and then copy it to the directory C:\Program Files\Microsoft Visual Studio\VB98.

After applying this fix. The Visual Basic 6 can now run successfully on your Computer.

NOTE: The Dao350.dll file is located in the \os\system folder on the Visual Basic 6.0 CD.

apexzy
  • 11
  • 2