K
Kristy
Hi
I have written a com add-in for Outlook in VB6 (2000 and XP). One of
the features of the Add-in enables the creation of emails with
embedded graphics, company wide signature blocks etc.
This option is also available from Word, Excel and PPT, (ie, you can
send documents as attachments from Word, Excel, PPT on the customised
email). Currently I do this by using one DLL that has 4 Designers
(one each for Outlook, Word, PPT and Excel). Each is loaded at
startup so that they can then freely use the Email creation code when
required.
This seems to work really well, but I would like to ensure that I am
using the best practices possible so could someone advise if this is
in fact the best, most reliable, stable method to use or if I should
actually be using 4 separate DLL's and use 'AddInInst.Object = Me' to
call the required subs from the Outlook dll when needed.
Also, I use subMain to check some details (and run a splash screen)
before I actually load the dll itself. Is it possible to tell which
Application has started and therfore caused Sub Main to run (sub main
runs before the on_connection event is fired but it must know that an
application has been opened or it wouldn't run Sub Main)? I've tried
Dim oHostApp as Object, Set oHostApp as Application in Sub Main, but
this doesn't work.
Thanks
Kris
I have written a com add-in for Outlook in VB6 (2000 and XP). One of
the features of the Add-in enables the creation of emails with
embedded graphics, company wide signature blocks etc.
This option is also available from Word, Excel and PPT, (ie, you can
send documents as attachments from Word, Excel, PPT on the customised
email). Currently I do this by using one DLL that has 4 Designers
(one each for Outlook, Word, PPT and Excel). Each is loaded at
startup so that they can then freely use the Email creation code when
required.
This seems to work really well, but I would like to ensure that I am
using the best practices possible so could someone advise if this is
in fact the best, most reliable, stable method to use or if I should
actually be using 4 separate DLL's and use 'AddInInst.Object = Me' to
call the required subs from the Outlook dll when needed.
Also, I use subMain to check some details (and run a splash screen)
before I actually load the dll itself. Is it possible to tell which
Application has started and therfore caused Sub Main to run (sub main
runs before the on_connection event is fired but it must know that an
application has been opened or it wouldn't run Sub Main)? I've tried
Dim oHostApp as Object, Set oHostApp as Application in Sub Main, but
this doesn't work.
Thanks
Kris