Do i need to reload (remove and add reference) to my dll file every time i compile it ? I am getting an error if i don't do it - something like "class does not support automation"
application - excel 2003
dll library written/compiled in VB6
classes (?)- standard class modules i guess (i'm not using any of the on_connection methods as it's an automation addin not com)
reference added in VB editor in Excel
after changing and recompiling existing dll i always need to untick it in references and tick again to make it work.
Unless of course you use Late Binding (see CreateObject rather than New) to the Objects in the dll in your VBA Project; that way no Project Reference is required in the VBA Project and it will not be sensitive to a specific version of the dll.
CreateObject or not there is some advantage in getting the Binary Compatibilty concept understood otherwise a new entry is made in the Window Registry every time you re-compile the ActiveX. At the end of such re-compiles VB6 is good enough to automatically reregister the new ActiveX, however unless you have manually unregistered the existing version first (eg via a Regsvr32 my ax.dll /u on the command line) its details can remain stranded in the registry. This is of no immediate consequence but adds to trash in the registry of the host machine.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.