Solved

Wrong version of runtime DLL

Posted on 1998-05-11
10
402 Views
Last Modified: 2012-06-21
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.
0
Comment
Question by:ndb
10 Comments
 
LVL 2

Expert Comment

by:chris_a
Comment Utility
Msvbvm50.dll has this version on my PC 05.00.4319 (SP2), I have applied SP3 also!
0
 
LVL 1

Author Comment

by:ndb
Comment Utility
I also have version 05.00.4319 (SP2).
0
 
LVL 4

Expert Comment

by:zsi
Comment Utility
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
 
LVL 1

Author Comment

by:ndb
Comment Utility
There is only one copy of Msvbvm50.dll on my computer.
0
 
LVL 1

Expert Comment

by:flivauda
Comment Utility
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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 1

Author Comment

by:ndb
Comment Utility
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
 
LVL 5

Expert Comment

by:yronnen
Comment Utility
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
 
LVL 1

Author Comment

by:ndb
Comment Utility
I've installed IE4 on my computer. Thanks anyway.
0
 
LVL 4

Accepted Solution

by:
zsi earned 200 total points
Comment Utility
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
 
LVL 1

Author Comment

by:ndb
Comment Utility
Thanks very much. It works!
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Public Sub, Empty Cell 7 56
VB error "Type mismatch" 2 42
Add a task in Outlook from access 11 32
Add and format columns in vb6 7 19
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now