Oleg Krupnov
2006-05-20 09:28:24 UTC
I'm developing an add-in (in VB) for Word and hesitating whether I
should pack it into a DOT add-in or a COM add-in.
The add-in should have its own toolbar and/or menu, so, as previously
discussed in this group, the best practice for this is not to create
the toolbar dynamically, but to load it from pre-designed DOT addin.
So, there's already going to be a DOT template in the delivery, but yet
without containing any macros - only the menu and the toolbar.
So far, I've been developing my add-in as a COM add-in but now I come
to think that since I already deliver a DOT add-in, maybe I should put
all my code into it as well and go with only one file?
Can anybody provide any experience of DOT add-ins vs COM add-ins?
The potential caveats may be in the following areas:
1) The DOT file isn't compiled to binary, unlike its DLL counterpart.
I.e. it contains the source code somewhere inside. If I want to hide
it, well, I can lock it on the password, but I wonder if it's safe
enough :) Also, intuitively, software just has to be binary :) I can't
help thinking that DOT is rather a document, not a program :) I wonder
if anybody cares though...
2) Security warnings to the user. It looks like they are the same when
installing both DOT and COM addins, but I ask just in case if I missed
something. For some reason, installing a DOT with macros feels to me
somewhat "dirtier" than installing a COM add-in :)
3) Distribution & installation. Obviously, delivering a DOT is far much
easier. No particular installation is needed, no registry settings etc.
It's good at one hand, but on the other hand, I wonder if it's going to
cause any issues, like the copyright protection of my software etc.?
should pack it into a DOT add-in or a COM add-in.
The add-in should have its own toolbar and/or menu, so, as previously
discussed in this group, the best practice for this is not to create
the toolbar dynamically, but to load it from pre-designed DOT addin.
So, there's already going to be a DOT template in the delivery, but yet
without containing any macros - only the menu and the toolbar.
So far, I've been developing my add-in as a COM add-in but now I come
to think that since I already deliver a DOT add-in, maybe I should put
all my code into it as well and go with only one file?
Can anybody provide any experience of DOT add-ins vs COM add-ins?
The potential caveats may be in the following areas:
1) The DOT file isn't compiled to binary, unlike its DLL counterpart.
I.e. it contains the source code somewhere inside. If I want to hide
it, well, I can lock it on the password, but I wonder if it's safe
enough :) Also, intuitively, software just has to be binary :) I can't
help thinking that DOT is rather a document, not a program :) I wonder
if anybody cares though...
2) Security warnings to the user. It looks like they are the same when
installing both DOT and COM addins, but I ask just in case if I missed
something. For some reason, installing a DOT with macros feels to me
somewhat "dirtier" than installing a COM add-in :)
3) Distribution & installation. Obviously, delivering a DOT is far much
easier. No particular installation is needed, no registry settings etc.
It's good at one hand, but on the other hand, I wonder if it's going to
cause any issues, like the copyright protection of my software etc.?