Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Add-in initialization when Outlook is running in "Embedding" mode

Geek News

Add-in initialization when Outlook is running in "Embedding" mode
"Alt Luke" <altluke[ at ]yahoo.com> 3/1/2006 3:59:52 AM
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.

Re: Add-in initialization when Outlook is running in "Embedding" mode
"Sue Mosher [MVP-Outlook]" <suemvp[ at ]outlookcode.com> 3/1/2006 1:44:39 PM
Many of us have successfully used the free AddinMon component from http://www.microeye.com to work around this known issue.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Alt Luke" <altluke[ at ]yahoo.com> wrote in message news:1141185591.962100.315130[ at ]v46g2000cwv.googlegroups.com...
[Quoted Text]
> 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.
>
Re: Add-in initialization when Outlook is running in "Embedding" mode
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 3/1/2006 2:24:14 PM
Although AddInMon doesn't work with the newer versions of Outlook and the
latest versions of ActiveSynch. Dave and I discarded using it a while ago.
Now we're using inline code to replace AddInMon.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Sue Mosher [MVP-Outlook]" <suemvp[ at ]outlookcode.com> wrote in message
news:%23%23iZomTPGHA.532[ at ]TK2MSFTNGP15.phx.gbl...
Many of us have successfully used the free AddinMon component from
http://www.microeye.com to work around this known issue.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


Re: Add-in initialization when Outlook is running in "Embedding" mode
"Sue Mosher [MVP-Outlook]" <suemvp[ at ]outlookcode.com> 3/27/2006 11:00:25 PM
Is that proprietary or have either of you published it as a sample? :)

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> wrote in message news:exMKSyTPGHA.2604[ at ]TK2MSFTNGP09.phx.gbl...
[Quoted Text]
> Although AddInMon doesn't work with the newer versions of Outlook and the
> latest versions of ActiveSynch. Dave and I discarded using it a while ago.
> Now we're using inline code to replace AddInMon.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
> "Sue Mosher [MVP-Outlook]" <suemvp[ at ]outlookcode.com> wrote in message
> news:%23%23iZomTPGHA.532[ at ]TK2MSFTNGP15.phx.gbl...
> Many of us have successfully used the free AddinMon component from
> http://www.microeye.com to work around this known issue.
>
> --
> Sue Mosher, Outlook MVP
> Author of Configuring Microsoft Outlook 2003
> http://www.turtleflock.com/olconfig/index.htm
> and Microsoft Outlook Programming - Jumpstart for
> Administrators, Power Users, and Developers
> http://www.outlookcode.com/jumpstart.aspx
>
>
Re: Add-in initialization when Outlook is running in "Embedding" mode
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 3/28/2006 2:36:09 PM
Not proprietary, but not published yet. We've been trying to make it work
with VB.NET as well as with VB 6.

I may just put it up on my Web site anyway soon as a VB 6 solution and not
wait for a .NET solution.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Sue Mosher [MVP-Outlook]" <suemvp[ at ]outlookcode.com> wrote in message
news:Oboh7JfUGHA.736[ at ]TK2MSFTNGP12.phx.gbl...
Is that proprietary or have either of you published it as a sample? :)

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


Re: Add-in initialization when Outlook is running in "Embedding" mode
"Sue Mosher [MVP-Outlook]" <suemvp[ at ]outlookcode.com> 4/7/2006 6:45:28 PM
Cool! I'll look forward to it.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> wrote in message news:OWI$EUnUGHA.6048[ at ]TK2MSFTNGP11.phx.gbl...
[Quoted Text]
> Not proprietary, but not published yet. We've been trying to make it work
> with VB.NET as well as with VB 6.
>
> I may just put it up on my Web site anyway soon as a VB 6 solution and not
> wait for a .NET solution.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
> "Sue Mosher [MVP-Outlook]" <suemvp[ at ]outlookcode.com> wrote in message
> news:Oboh7JfUGHA.736[ at ]TK2MSFTNGP12.phx.gbl...
> Is that proprietary or have either of you published it as a sample? :)
>
> --
> Sue Mosher, Outlook MVP
> Author of Configuring Microsoft Outlook 2003
> http://www.turtleflock.com/olconfig/index.htm
> and Microsoft Outlook Programming - Jumpstart for
> Administrators, Power Users, and Developers
> http://www.outlookcode.com/jumpstart.aspx
>
>

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net