Board index » delphi » Exchange/OLE/MAPI & Delphi

Exchange/OLE/MAPI & Delphi

I need the following: does anyone know the correct Delphi code for the
following:

CreateOLEObject('MAPI.Session');

the part MAPI.Session is where the problem occurs. Run-time it returns an
error 'invalid class series'. The translation is most probably a little or
a lot off, since I'm running a Dutch-version Windows, so the OLE error
message is in Dutch.

Any help is welcome and most definetely wanted.

Rob van Oostrum
Consist BV
Netherlands

 

Re:Exchange/OLE/MAPI & Delphi


Your code is actually correct and works fine at my place :

ex.

var v : variant;
begin
 v:=CreateOLEObject('MAPI.Session');
 v.logon;
end;

Re:Exchange/OLE/MAPI & Delphi


Rob van Oostrum <rob.van.oost...@tip.nl> wrote in article
<01bbf890$25bad180$211db18f@t888218>...

Quote
> I need the following: does anyone know the correct Delphi code for the
> following:

> CreateOLEObject('MAPI.Session');

> the part MAPI.Session is where the problem occurs. Run-time it returns an
> error 'invalid class series'. The translation is most probably a little
or
> a lot off, since I'm running a Dutch-version Windows, so the OLE error
> message is in Dutch.

> Any help is welcome and most definetely wanted.

> Rob van Oostrum
> Consist BV
> Netherlands

OLE Messaging is supported, but not included, in Windows95. You need the
OLE Messaging update from Microsoft (available through MSDN Professional).

Cheers,
Alex <a...@image.no>
--------------------------------------------------------------
"Reality is that which, when you stop believing in it,
doesn't go away." (Philip K.{*word*106})

Other Threads