Client Extensions

W

WLAN

Hello,

I have a client extension written in C++. It's working fine with Outlook
2003 version. But for Outlook 2007 version, its throwing exception. I
couldn't locate the exact location of the bug.

It's crashing when it try to invoke or execute some explorer events. I know
dispid as 61447. It's OnSelectionChange event of explorer and its crashing
after invoking this dispid function.

My client extension provides drop down command bar button if some properties
are set in mailitem.This commandbar button provides lot of submenu items and
one of the item is create another explorer window.

The following are my doubts:

(1) How many client extensions (DLLS) gets loaded if multiple explorer
windows are launched ?

(2) When i invoke a new explorer window from main explorer window, another
extension dll gets loaded.Will each client extension DLL keep its own state?

Thanks
 
D

Dmitry Streblechenko

1. the dll is loaded only once by the process, this is a Windows feature.
2. Your ECE entry point may be called multiple times in different contexts.
Nothing however prevents you from creating you ECE object only once and
storting a pointer to it in a global variable so you can rerurn it on
subsequent cals to yoru ECE entry point rather than returning a brand new
object.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top