nwein
Posts: 577
Joined: 2011-03-28
|
After reading a bit about the subject I found myself wondering why do you guys generate the HostApplication as an _Application and not as Application?
The two are almost similar but there are some changes between the classes/interfaces, especially when dealing with different version of Office. ADX - being a product that aims to support multiple versions - it would make even more sense to use Application.
Care to elaborate on this?
As always, thanks!
https://msdn.microsoft.com/en-gb/library/ms247299%28office.11%29.aspx?f=255&MSPPError=-2147217396 |
|
Andrei Smolin
Add-in Express team
Posts: 19138
Joined: 2006-05-11
|
Hello Nir,
Mnemonically, I regard Application as _Application plus events.
Could you please point me to a page describing such changes?
Andrei Smolin
Add-in Express Team Leader |
|
nwein
Posts: 577
Joined: 2011-03-28
|
Yeah, that's the difference I was talking about, _Application doesn't inherit ApplicationEvents4_Event and, even though I can't remember where I saw it, I remember reading that those events were tied more closely to the version of Office.
There is more information about this https://msdn.microsoft.com/en-gb/library/ms247302(v=office.11).aspx.
It's a very minor change for you to change the auto-code generation template, and it would bow well with Microsoft's paradigm. |
|
Andrei Smolin
Add-in Express team
Posts: 19138
Joined: 2006-05-11
|
Nir,
Add-in Express covers the need for events by providing events components and events classes. To get Application instead of _Application, you can just modify the OutlookApp property in the code of the add-in module. Sincerely, I'm not sure that I see the paradigm you've mentioned.
Andrei Smolin
Add-in Express Team Leader |
|