J
Jayme.Pechan
I'm trying to figure out the proper place to add buttons to an inspector in
2003. Here is what I've tried and the results:
1. I tried adding the buttons in the OnNewInspector function but it crashes
on some machines. On most it works great.
2. I then tried storing the inspector interface from the OnNewInspector but
didn't add the buttons until the Activate event but this simply stops
executing on the call to get_CommandBars call (no exception, just stops
running).
3. If I call get_CommandBars in the OnNewInspector then in the Activate
event, I call the methods to add the buttons, it simply crashes Outlook
altogether.
I've noticed several people in the group say that it should be done in the
Activate but how do you get the Inspector reference? I'm really confused
why it's so flaky at this point.
BTW, I'm using ATL and C++.
Thanks.
2003. Here is what I've tried and the results:
1. I tried adding the buttons in the OnNewInspector function but it crashes
on some machines. On most it works great.
2. I then tried storing the inspector interface from the OnNewInspector but
didn't add the buttons until the Activate event but this simply stops
executing on the call to get_CommandBars call (no exception, just stops
running).
3. If I call get_CommandBars in the OnNewInspector then in the Activate
event, I call the methods to add the buttons, it simply crashes Outlook
altogether.
I've noticed several people in the group say that it should be done in the
Activate but how do you get the Inspector reference? I'm really confused
why it's so flaky at this point.
BTW, I'm using ATL and C++.
Thanks.