Wrong version of runtime DLL

I've just installed SP3 of VB5. If I run my program in VB itself it gives no problem. If I compile it and try to run it again it says: Wrong version of runtime DLL.
LVL 1
ndbAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
zsiConnect With a Mentor Commented:
That's probably part of your problem (IE4).  In what order did you install IE4 and VB5?  If you installed IE4 after VB, re-install VB
0
 
chris_aCommented:
Msvbvm50.dll has this version on my PC 05.00.4319 (SP2), I have applied SP3 also!
0
 
ndbAuthor Commented:
I also have version 05.00.4319 (SP2).
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
zsiCommented:
ndb,

Check your path and make sure that you do not have any other copies of the VB runtime DLL's in your path.




0
 
ndbAuthor Commented:
There is only one copy of Msvbvm50.dll on my computer.
0
 
flivaudaCommented:
do a:

c:\> del *.oca /s

on your drives and then goto regedt32
goto:
local machine
    software
         microsoft
              visual basic
                 bunch of stupid oca keys

and delete and the keys for your oca files. (be careful not to delte anything below it, if you go to fast you may delete your winnt keys)

This should fix it.  FOr some reason vb creates the stupid oca cache files but doesnt always update them and you can be referenceing the wrong version of stuff.  I have a login script that delets all my ocas everytime just avoid this problem.
0
 
ndbAuthor Commented:
I am sorry but this doesn't seem to work. All .oca files are removed from my harddrive and under the the vb subtree in the registry.
0
 
yronnenCommented:
Have you tried installing internet explorer 3.01 and up? I know it sounds funny, but if yuo install vb (especially SP3) yuo must install ie3.01.

This may help.
0
 
ndbAuthor Commented:
I've installed IE4 on my computer. Thanks anyway.
0
 
ndbAuthor Commented:
Thanks very much. It works!
0
All Courses

From novice to tech pro — start learning today.