Win32OLE doesn't work with Outlook Express?

B

baon

Hi there,

I am trying to retrieve some mails from my Outlook Express mail-box.

However, when using the 'WIN32OLE.connect('Outlook Express.Application')', I
will get the following error message:

WIN32OLERuntimeError: unknown OLE server: `Outlook Express.Application'
HRESULT error code:0x800401f3
Invalid class string
from (irb):23:in `initialize'
from (irb):23:in `new'
from (irb):23

I have tried 'Outlook', 'Outlookexpress' with upper/lower case as well. It
doesn't work anyway.

It seems to me that WIN32OLE could support Outlook, but not Outlook Express.
Is that true?


If so, would you guys please give me some ideas on how to accomplish my task
of retrieving data from Outlook Express (*.dbx formats) using Ruby?

Regards and Thanks,
Bob
 
M

Masaki Suketa

Hello,

In message "Win32OLE doesn't work with Outlook Express?"
I have tried 'Outlook', 'Outlookexpress' with upper/lower case as well. It
doesn't work anyway.

It seems to me that WIN32OLE could support Outlook, but not Outlook Express.
Is that true?

Yes. because Outlook Express does not provide the OLE automation
interface, but Outlook does.
Win32OLE access the OLE automation interface.

Unfortunately, you can not control Outlook Express like Outlook
using any other Language (VBScript, Perl, Python, ... etc.) which
access the OLE automation interface.
If so, would you guys please give me some ideas on how to accomplish my task
of retrieving data from Outlook Express (*.dbx formats) using Ruby?

Sorry, the site is written by Japanese only, but I hope
the following URL help you.
http://d.hatena.ne.jp/j0hn/20070102/1167725911

Regards,
Masaki Suketa
 
B

baon

Hi Masaki,

Your message is really helpful!
Thanks a great deal!

Regards,
Bob

----- Original Message -----
From: "Masaki Suketa" <[email protected]>
To: "ruby-talk ML" <[email protected]>
Sent: Monday, February 12, 2007 3:49 PM
Subject: Re: Win32OLE doesn't work with Outlook Express?


Hello,

In message "Win32OLE doesn't work with Outlook Express?"
I have tried 'Outlook', 'Outlookexpress' with upper/lower case as well. It
doesn't work anyway.

It seems to me that WIN32OLE could support Outlook, but not Outlook Express.
Is that true?

Yes. because Outlook Express does not provide the OLE automation
interface, but Outlook does.
Win32OLE access the OLE automation interface.

Unfortunately, you can not control Outlook Express like Outlook
using any other Language (VBScript, Perl, Python, ... etc.) which
access the OLE automation interface.
If so, would you guys please give me some ideas on how to accomplish my task
of retrieving data from Outlook Express (*.dbx formats) using Ruby?

Sorry, the site is written by Japanese only, but I hope
the following URL help you.
http://d.hatena.ne.jp/j0hn/20070102/1167725911

Regards,
Masaki Suketa
 
B

baon

Hi Dave,

Thanks for your link.

Anyway, I think I will try to find a Ruby parser or something like that. It
is not a easy task for me to integrate C++ with Ruby (using SWIG for some
wrapping work maybe).

Regards and Thanks,
Bob
----- Original Message -----
From: "Dave Burt" <[email protected]>
Newsgroups: comp.lang.ruby
To: "ruby-talk ML" <[email protected]>
Sent: Monday, February 12, 2007 7:10 PM
Subject: Re: Win32OLE doesn't work with Outlook Express?


Hi baon,
I am trying to retrieve some mails from my Outlook Express mail-box.

However, when using the 'WIN32OLE.connect('Outlook Express.Application')', I
will get the following error message:

Outlook Express doesn't have a COM interface.

See here for some ways you can deal with .dbx files:
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/230261

Cheers,
Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top