Newbie Questions

H

Hector Y. Martinez

Hi, I working on a outlook add-in developed with Visual C++.Net 2005 using
COM ATL, and I have some questions... if I compile the dll using the spanish
version of outlook 2003, could I get any error if I use the dll, later with
another language version (like english), or if I use it with outlook 2000 ?
In the other hand I have some doubts with events... I want to check when
any Item in a custom folder are opened (or better, trying to be opened). I
want to check too if any Item is added (or better trying to be added) to that
custom folder, any advice ?

I was trying with the Open event of the Items object, but I think this
event can only be advised for one Item, am I wrong ?

Thanx in advance...

Hector.
 
K

Ken Slovak - [MVP - Outlook]

You can handle the NewInspector event of the Inspectors collection to see
when an item is being opened. In that event handler you get a weak object
reference to the Inspector's CurrentItem that can be used to check the Class
property to see if it's a type of item you want to handle. You can then
cache a wrapper class that handles Inspectors in a list or collection to
keep that class alive while the Inspector is open.

For items added to a specific folder handle the ItemAdd event on that
folder's Items collection.

Both sets of events are there in Outlook 2000.

I don't do C++ or ATL, but in other languages you must reference the
earliest version of Outlook you intend to program for. You can then use late
binding to get to properties or methods added in later versions if you are
running under that later version and need to use those methods or
properties.

As far as language goes you should be OK, other than language specific
strings and any language specific names of things. That you'd have to check
for.
 

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