I have my own Outlook toolbar and try to have it non-temporary so that it keeps its position. But I run into problems.
I can't seem to make the buttons non-temporary. If I try, the "Add" call fails. If I use the same parameters from OutlookSpy, it works, a button appears.
So, I've resented to using temporary items on a non-temporary toolbar. I'm scanning for the toolbar on each startup and then add the (temporary) buttons. Bad style, but works. On many computers.
On some computers, the "Add" call fails. And have no idea why.
I'm using C++ and use Invoke / QueryInterface for all these stupid pointers and I'm checking all the results to make sure that I get valid pointers. They all seem to be valid, and still "Add" fails.
What could be the reason???
Any ideas? PLEASE!!
I can't seem to make the buttons non-temporary. If I try, the "Add" call fails. If I use the same parameters from OutlookSpy, it works, a button appears.
So, I've resented to using temporary items on a non-temporary toolbar. I'm scanning for the toolbar on each startup and then add the (temporary) buttons. Bad style, but works. On many computers.
On some computers, the "Add" call fails. And have no idea why.
I'm using C++ and use Invoke / QueryInterface for all these stupid pointers and I'm checking all the results to make sure that I get valid pointers. They all seem to be valid, and still "Add" fails.
What could be the reason???
Any ideas? PLEASE!!