R
rebkwez
Hi,
I have an add-in for Outlook written in VB6. I was testing it with
Outlook 2000 and everything worked fine. I then installed Outlook 2003
on my machine and the add-in was working fine. Had to make a few code
changes here and there but for the most part it was the same. I wrote
an installer and had someone test it. It no longer works on 2000. I
unistalled 2003 on my machine and then re-installed 2000. I discovered
that the OnConnection funtion was failing when I try to initiate a
variable and I recieved an error "Automation error Library not
registered."
Below is the code that is causing the error. The error occurs when I
try to set OLInstance.
Any suggestions as to why this is happening? Did installing Outlook
2003 and using those librarys effect backwards compatibility? How does
one properly code and add-in to work for all versions of Outlook?
Thanks
Elliot
Private OLInstance As Outlook.Application
Private Sub AddinInstance_OnConnection(ByVal Application As Object,
ByVal ConnectMode As AddInDesignerObjects.ext_ConnectMode, ByVal
AddInInst As Object, custom() As Variant)
Set OLInstance = Application
I have an add-in for Outlook written in VB6. I was testing it with
Outlook 2000 and everything worked fine. I then installed Outlook 2003
on my machine and the add-in was working fine. Had to make a few code
changes here and there but for the most part it was the same. I wrote
an installer and had someone test it. It no longer works on 2000. I
unistalled 2003 on my machine and then re-installed 2000. I discovered
that the OnConnection funtion was failing when I try to initiate a
variable and I recieved an error "Automation error Library not
registered."
Below is the code that is causing the error. The error occurs when I
try to set OLInstance.
Any suggestions as to why this is happening? Did installing Outlook
2003 and using those librarys effect backwards compatibility? How does
one properly code and add-in to work for all versions of Outlook?
Thanks
Elliot
Private OLInstance As Outlook.Application
Private Sub AddinInstance_OnConnection(ByVal Application As Object,
ByVal ConnectMode As AddInDesignerObjects.ext_ConnectMode, ByVal
AddInInst As Object, custom() As Variant)
Set OLInstance = Application