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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

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
zsiCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ndbAuthor Commented:
Thanks very much. It works!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.