Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outlook OLE 1

Status
Not open for further replies.

abcfantasy

Programmer
Jun 3, 2006
110
DK
Hello,

I'm doing this program that creates an outlook OLE application, and reads through all the contacts saved in the addressbook.

I've got outlook 2003 installed. Whenever my program tries to access the outlook express, a window pops up saying:

"A program is trying to access e-mail addresses you have stored in Outlook. Do you want to allow this?
If this is unexpected, it may be a virus and you should choose 'No'."

And if there are 10 contacts, it will pop up 10 times!
Is there a way to prevent this from showing? Maybe something that shows that the application is 'safe'?

Thanks in advance
Andrew


ABC -
 
Just below the text you quoted, there's a checkbox which says "Allow access for" and next to it a drop-down box that contains values of 1, 2, 5 and 10 minutes. So, by enabling this option for an appropriate time period you don't get 10 popups, you just get one.

I did a google search for the message that pops up and at the bottom of the page the entries found in "Google Groups" appeared. Here is one of the them that looks helpful:

See Sue Mosher's response to the question - it's comprehensive and advises the use of Extended MAPI (a link is provided in her reply) for Delphi and C++ applications. She would know what she's talking about cos she's an Outlook MVP.

Clive
Runner_1Revised.gif

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer." (Paul Ehrlich)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
 
Another question..

I noticed that Simple MAPI, OLE automation and ShellAPI all access Microsoft Office Outlook (or rather the default mail client).

It would be much better if they could access Outlook Express instead. Is there a way to change the default mail client through my program? (I'm not going to change the internet options of all the computers which will use my app)

Thanks for your help
Andrew

ABC -
 
...Finally, you can access these settings through your System Registry -- the path is HKEY_CLASSES_ROOT\Mailto\Shell\Open\Command. In all three cases, the proper setting for OE Mail is "C:\Program Files\Outlook Express\msimn.exe" /mailurl:%1 (with the quotation marks). When you view the Mail and News program settings for IE under View | Internet Options | Programs, you may not be able to specify OE as your mail program. This behavior can occur when you uninstall Microsoft Outlook 97/98 (see Knowledge Base Article Q176571). To fix this problem, simply reinstall OE...
Source:
This may be of some use, although it doesn't seem to mention IE6:
Clive
Runner_1Revised.gif

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer." (Paul Ehrlich)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
 
Great. That was exactly what I was looking for. ShellExecute now executes Outlook Express instead of Office Outlook.

Yet I still got one more problem. Ole Automation ( CreateOleObject('Outlook.Appication') still uses Office Outlook.

Any help?
Thanks again
Andrew

ABC -
 
Yet I still got one more problem. Ole Automation ( CreateOleObject('Outlook.Appication') still uses Office Outlook.
That's not possible, have to use some component/routine to 'directly' access the datafiles of OE. There are some components available at not sure if they are free.

HTH
TonHu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top