A
Alt Luke
Hi There,
Does anyone know how to properly initialize a COM add-in when Outlook
is running in "embedding" mode (launched as "Outlook.exe -Embedding").
This mode is launched by Outlook COM clients such as ActiveSync 4.0 to
initialize Outlook without any GUI interaction.
The current problem at hand is that there is no active explorer pointer
(NULL when queried via Outlook::_Application's ActiveExplorer call).
Without a pointer to the explorer object, the GUI portions of the COM
add-in (toolbar buttons) can not be initialized.
Ways to reproduce this in Outlook 2003 on Windows XP:
1. Run the first instance of Outlook with "-Embedding" as command line
argument.
2. Outlook processs will show up in task manager but no GUI will show
up. This is the GUI-less embedding mode.
3. Run Outlook again but this time without any command line argument.
4. A second instance of Outlook will show up briefly in task manager,
but it will detect that there was already one instance running. The
second Outlook will quickly shutdown and the first Outlook (previously
GUI-less) will now show its main window. This effectively turns the
"embedding" Outlook into a regular GUI Outlook.
Hopefully this makes sense. Any insight is greatly appreciated.
Thanks in advance.
A.L.
Does anyone know how to properly initialize a COM add-in when Outlook
is running in "embedding" mode (launched as "Outlook.exe -Embedding").
This mode is launched by Outlook COM clients such as ActiveSync 4.0 to
initialize Outlook without any GUI interaction.
The current problem at hand is that there is no active explorer pointer
(NULL when queried via Outlook::_Application's ActiveExplorer call).
Without a pointer to the explorer object, the GUI portions of the COM
add-in (toolbar buttons) can not be initialized.
Ways to reproduce this in Outlook 2003 on Windows XP:
1. Run the first instance of Outlook with "-Embedding" as command line
argument.
2. Outlook processs will show up in task manager but no GUI will show
up. This is the GUI-less embedding mode.
3. Run Outlook again but this time without any command line argument.
4. A second instance of Outlook will show up briefly in task manager,
but it will detect that there was already one instance running. The
second Outlook will quickly shutdown and the first Outlook (previously
GUI-less) will now show its main window. This effectively turns the
"embedding" Outlook into a regular GUI Outlook.
Hopefully this makes sense. Any insight is greatly appreciated.
Thanks in advance.
A.L.