Solved

Resistry loses VB6 DLL

Posted on 2000-03-30
5
248 Views
Last Modified: 2010-05-02
I have an Active-X DLL compiled in VB6. I registered it with Regsvr32.exe. A VB6 EXE calls the DLL. Every now and then I have to re-register the DLL to get the EXE to work. Why?
0
Comment
Question by:Neal Hartman
5 Comments
 
LVL 2

Accepted Solution

by:
bhamilto earned 50 total points
ID: 2671007
Are you recompiling the DLL?  If so you need to set it for binary compatibility.
0
 
LVL 4

Expert Comment

by:gcs001
ID: 2671026
Also remember that binary compatibility will not save you from having to re-register the control in all instances.
If you add more functionality in the DLL that changes the workig of the DLL you would have to re-registr it.
But it is a good idea to set it to Binary compatibilty as bhamilto said.
0
 
LVL 2

Expert Comment

by:JetScootr
ID: 2676727
A couple of pieces of info are needed to answer, but I'll try to answer in each situation.  First: Is the DLL reg dat 'disappearing' from the machine that is being used to compile it? If so, as said before, check binary compatibilty.  If not, for example, if you're compiling it, running "package and deployment", and installing on a client PC, check these:
1> Is client PC on a network with NT as authenticating server?  I've seen cases where registry entries, downloaded by NT login script, overwrote (or overrode) locally installed registry setting.  Have not seen this on a Novell network, or on NT networks where system login script isn't being run at login time.
2> Were you logged in as W95/98 user or as "admin" when installing?  best bet:  click "Cancel" on the windows login screen, that is, startup without logging in prior to doing any install.  I've seen cases where this did make a difference - particularly the VB 6.0 Addins!  If you're logged in, say as "Kelly" when installing VB6.0 (and presumably at least some other packages), then when "Terry" logs in, VB 6.0 is fine, but the addins (which are DLLs in some cases) are gone!  There's a MSDN knowledge base article on this.
0
 
LVL 1

Author Comment

by:Neal Hartman
ID: 2695380
bhamilto had it right.
0
 
LVL 1

Author Comment

by:Neal Hartman
ID: 2695384
Your right.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Computer crashes, following error message in event manager 5 282
Adding to a VBA? 6 85
using web browser with BING 40 137
VB6 - Scroll Mouse wheel on Picturebox 13 98
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…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

696 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