Solved

Version Compatibility

Posted on 1999-01-20
4
263 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
[X]
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
  • 2
4 Comments
 

Author Comment

by:scorpionjl
ID: 1469698
Edited text of question
0
 
LVL 3

Expert Comment

by:covington
ID: 1469699
When you use binary compatibility, what file are you pointing to for your interface reference?
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 200 total points
ID: 1469700
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
ID: 1469701
Thanks, thats exactly what i was looking for
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

705 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