1. Under project properties in
VB, set Binary Compatability on the Component
tab.
1b. This won't always work because you might change some things in the
project such that compatability cannot be maintained.
2. In VBA, create the reference to the dll dynamically rather than through
the references. This means that if the system ref to the dll changes, you
will still get the correct file rather than having to unload the reference,
then reload it on the new id.
e.g.
Public DB as Object
Sub CreateRef()
If DB Is Nothing Then Set DB = CreateObject("myDll.clsName")
Exit Sub
HTH,
Robin Hammond
www.enhanceddatasystems.com
"R Avery" wrote in message
...
I have several DLLs that i make in VB6, and whenever I update them by
adding new functions, all the references that my workbooks made to these
DLLs are now broken and i have to reset them. Why does this happen? Is it
because the workbooks are bound to the GUID of the DLL, which perhaps
changes on every compilation? If so, is there anyway in VB6 to compile
DLLs with the same GUID? Or is there any programmatic way to update the
references to my workbooks so that i won't have to keep resetting them
manually?