Solved

Version Compatibility

Posted on 1999-01-20
4
259 Views
Last Modified: 2010-05-03
I have a program (prog.exe) calling a dll (used.dll).
If i compile the dll and then the program Prog.exe runs fine.  If i recompile the dll then try to run prog.exe again I get error 429 (Can not create activex objext).  In order to get the program to run again i need to load the project up and recompile it (i dont even have to change any settings).  I have tried everything from project compatibility to none to binary.  Any help in solving this problem would be appriciated.  I am using VB5 with SP3 installed
0
Comment
Question by:scorpionjl
  • 2
4 Comments
 

Author Comment

by:scorpionjl
Comment Utility
Edited text of question
0
 
LVL 3

Expert Comment

by:covington
Comment Utility
When you use binary compatibility, what file are you pointing to for your interface reference?
0
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 200 total points
Comment Utility
Lot of people (including me) have nightmare with this topic!!!

There is at least 2 methods to deal with. An easy one (but not the most efficient) and ... another method!!!!

The easiest way (but not the most efficient) is to use late binding (you know Dim objX as Object). This way, as soon as your component is correctly registered, your application will be able to use it as if they were compiled together.

For the second way, you have already begun your exploration: use Binary Compatibility. The trick is to compile your component. Once compiled, you make a copy of it in another directory. This copy will become your master template. In the component tab of your component DLL, you select Binary compatibility and in the text box just under, you point to the master template. As long as you do not touch the properties, methods and events that exist in your master template, your older applications are not supposed to have problem dealing with your newest component. But forget the new methods.
0
 

Author Comment

by:scorpionjl
Comment Utility
Thanks, thats exactly what i was looking for
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
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…

763 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