View Single Post
  #4  
Old June 21st 06, 02:32 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Redemption not working :(

If Outlook is already running something like this works:

oSession.Logon "", "", False, False

NameSpace.MAPIOBJECT is there certainly for Outlook 2000 and later. I don't
have any earlier versions to check on running here. It's a hidden member
however of that object model. When the Object Browser is displayed
right-click somewhere in the list of properties, methods and events and
select Show Hidden Members to see it in the NameSpace object properties.

--
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


wrote in message
ps.com...
Hi Ken,
thank you very much for thr prompt reply. Now I understand that I need
to instantiate either MAPIUtils or the RDOSession object. But I din't
understand to wat to initialse them with. Redemption says :

There are several ways to log on to a MAPI session in RDO:

* set the RDOSession.MAPIOBJECT property to an instance of the
IMAPISession Extended MAPI object. IMAPISession can be retrieved either
through Extended MAPI using the MAPILogonEx function, Outlook Object
Model (Namespace.MAPIOBJECT property in Outlook 2002 and up) or CDO
1.21 (Session.MAPIOBJECT property)

* RDOSession.Logon method, which takes several parameters,
including the MAPI profile name (pass an empty string to use the
default MAPI profile)

But I am using Outlook2003 OOM and C++. And I din't find any
property named MAPIOBJECT in Namespace. Also the function
RDOSession.LogOn() expects arguments of the type VARIANT. So i will be
greatful to you if you please give me some code sample to logon to
RDOSession or initialise MAPIUtils.
Thank you again..


Ads