I
Ian Mackenzie
Hi
Is it wise to connect to an RDOSession on startup and leave it running for
the duration of my application, or would it be better to connect and logon
each time I want to do something.
Also, when my program runs for the first time, I globally store all the
following. Is this the correct way to go about it?
procedure startup()
begin
//create RDOSession
RDOSession := CreateOleObject('Redemption.RDOSession');
//logon to RDO Session
RDOSession.Logon;
OutlookApp := CreateOLEObject('Outlook.Application');
NSpace := OutlookApp.GetNameSpace('MAPI');
NSpace.Logon;
RootFolder := RDOSession.Stores.DefaultStore.IPMRootFolder;
DeletedItems := RDOSession.GetDefaultFolder(3);
etc... for all folders...
All folders are fetched using the RDOSession and not the NameSpace...
Whats the difference?
Thanks for your help
Ian
Is it wise to connect to an RDOSession on startup and leave it running for
the duration of my application, or would it be better to connect and logon
each time I want to do something.
Also, when my program runs for the first time, I globally store all the
following. Is this the correct way to go about it?
procedure startup()
begin
//create RDOSession
RDOSession := CreateOleObject('Redemption.RDOSession');
//logon to RDO Session
RDOSession.Logon;
OutlookApp := CreateOLEObject('Outlook.Application');
NSpace := OutlookApp.GetNameSpace('MAPI');
NSpace.Logon;
RootFolder := RDOSession.Stores.DefaultStore.IPMRootFolder;
DeletedItems := RDOSession.GetDefaultFolder(3);
etc... for all folders...
All folders are fetched using the RDOSession and not the NameSpace...
Whats the difference?
Thanks for your help
Ian