msoutlook.org Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Newbie Questions

 
Post new topic   Reply to topic    msoutlook.org Forum Index -> Outlook Programs Add-Ins
Author Message
Hector Y. Martinez



Joined: 10 Feb 2008
Posts: 2

PostPosted: Fri Feb 22, 2008 7:49 am    Post subject: Newbie Questions Reply with quote

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.
--
"The best way to predict the future, is to invent it"

Archived from group: microsoft>public>outlook>program_addins
Back to top
View user's profile Send private message
Ken Slovak - [MVP - Outlo



Joined: 12 Aug 2007
Posts: 405

PostPosted: Fri Feb 22, 2008 2:13 pm    Post subject: Re: Newbie Questions Reply with quote

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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Hector Y. Martinez" wrote in
message @microsoft.com...
>
> 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.
> --
> "The best way to predict the future, is to invent it"

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
Help a newbie I am new to outlook. I just have afew question if you can help me. I would like to sync my blackberry with outlook but I want to keep my contact seprated in groups. How do I do that? What is the difference between groups and catergories?

Quick Newbie Question Need to know what Objects I'll need to deal with in Outlook to accomplish the following: - Read a calendar entry (meetings, appointments, etc) - Make a calendar entry I took a look at the object model, but nothing was immediately obvious. I just got anot

A newbie:Sending FAX using MS OutlookXP and WinFax Pro Hello; I installed WinFax pro 10.0 on WindowsXP and want to send one of my Access XP reports thru Microsoft on Microsoft (provided for using Microsoft Fax),I opened the report in design view and in its page setup,set its pri

Newbie "save post item as .." Can't get it to work. I can't get this macro to work. i'm trying to save the email item that is open to a file. I'm trying two alternatives, i.e., save to .txt and save to .html Nothing gets saved, when I use the code line below strname & ".txt", olTXT") and

"CATEGORIES" Questions Recently I have been experimenting with using Categories instead of DLs to organize contacts into groups and send group emails. There are two things that happen that are annoying, and I wonder if there is a way to address them? 1. When I drag a category
Post new topic   Reply to topic    msoutlook.org Forum Index -> Outlook Programs Add-Ins All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group