Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Wrong version of runtime DLL

Posted on 1998-05-11
10
429 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
ID: 1445738
Msvbvm50.dll has this version on my PC 05.00.4319 (SP2), I have applied SP3 also!
0
 
LVL 1

Author Comment

by:ndb
ID: 1445739
I also have version 05.00.4319 (SP2).
0
 
LVL 4

Expert Comment

by:zsi
ID: 1445740
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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 1

Author Comment

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

Expert Comment

by:flivauda
ID: 1445742
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
 
LVL 1

Author Comment

by:ndb
ID: 1445743
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
ID: 1445744
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
ID: 1445745
I've installed IE4 on my computer. Thanks anyway.
0
 
LVL 4

Accepted Solution

by:
zsi earned 200 total points
ID: 1445746
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
ID: 1445747
Thanks very much. It works!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to hault or freeze parent form when a 2d form is open in vb6 3 40
vbModal 12 57
Send outlook email from VBS Script 2 42
VB6 - Scroll Mouse wheel on Picturebox 13 73
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

861 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