M
Mike
"Error 459: Object or class does not support the set of events
in Designer Connect procedure AddinInstance_OnConnection."
This statement is the entire contents of the OnConnection sub.
gBaseClass.InitHandler Application, AddInInst.ProgId
However it's not happening in that actual sub because I have line
numbering and no line number is reported in the error message.
This code is the entire InitHandler sub.
On Error GoTo InitHandler_Error
2 Set objOutlook = olApp
4 Set oObject = olApp6
6 Set NS = oObject.GetNamespace("MAPI")
8 gstrProgID = strProgID
'Declared WithEvents
10 Set objNS = objOutlook.GetNamespace("MAPI")
12 Set colExpl = objOutlook.Explorers
14 Set colInsp = objOutlook.Inspectors
16 Set objExpl = objOutlook.ActiveExplorer
18 Set objInsp = objOutlook.ActiveInspector
On Error GoTo 0
Exit Sub
InitHandler_Error:
Note the error numbers and error trapping so its not happening here
either.
In the IDE I single stepped through the entire code that is used to
launch Outlook and add the button and didn't go through any section
with error trapping so I am totally baffled.
The addin does not load a form it just installs a button on the
toolbar which in turn will launch the addin.
Compiled on Win2000 with Outlook 2000 installed
Installs and runs fine when installed on machine running XP and
Outlook 2003.
Runs fine from VB6 IDE on machine running Win2000 and Outlook 2000.
Fails on same machine if I install it (using an Inno setup) and then
launch outlook.
Where should I look next? Can't single step through it outside of the
IDE.
Thanks
-mike
in Designer Connect procedure AddinInstance_OnConnection."
This statement is the entire contents of the OnConnection sub.
gBaseClass.InitHandler Application, AddInInst.ProgId
However it's not happening in that actual sub because I have line
numbering and no line number is reported in the error message.
This code is the entire InitHandler sub.
On Error GoTo InitHandler_Error
2 Set objOutlook = olApp
4 Set oObject = olApp6
6 Set NS = oObject.GetNamespace("MAPI")
8 gstrProgID = strProgID
'Declared WithEvents
10 Set objNS = objOutlook.GetNamespace("MAPI")
12 Set colExpl = objOutlook.Explorers
14 Set colInsp = objOutlook.Inspectors
16 Set objExpl = objOutlook.ActiveExplorer
18 Set objInsp = objOutlook.ActiveInspector
On Error GoTo 0
Exit Sub
InitHandler_Error:
Note the error numbers and error trapping so its not happening here
either.
In the IDE I single stepped through the entire code that is used to
launch Outlook and add the button and didn't go through any section
with error trapping so I am totally baffled.
The addin does not load a form it just installs a button on the
toolbar which in turn will launch the addin.
Compiled on Win2000 with Outlook 2000 installed
Installs and runs fine when installed on machine running XP and
Outlook 2003.
Runs fine from VB6 IDE on machine running Win2000 and Outlook 2000.
Fails on same machine if I install it (using an Inno setup) and then
launch outlook.
Where should I look next? Can't single step through it outside of the
IDE.
Thanks
-mike