Subject: | Ole with indy |
Posted by: | Carlomagno Antonello (a.carlomag…@synergica.it) |
Date: | Tue, 28 Feb 2006 |
Hi all,
in my app I have an UDP server that receives message, when it receives a
particular message, my app have to search in OUTLOOK's contacts.
I write this very simple code but I get an error on the first line:
procedure TForm1.IdUDPServer1UDPRead(Sender: TObject; AData: TBytes;
ABinding: TIdSocketHandle);
var
O,N,C : Variant;
begin
O:=CreateOleObject('Outlook.Application');
N:=O.GetNamespace('MAPI');
C := N.GetDefaultFolder(10);
end;
I cannot connect to outlook inside that event, the same proc, outside
the event works.
Someone can help me?
Many thanks.
Giorgio.