Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking if Outlook is installed
Message
 
To
29/11/2002 00:57:55
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australia
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00728098
Message ID:
00728110
Views:
18
This message has been marked as the solution to the initial question of the thread.
Hi Gavin,

Rick Strah's IsComObject.prg will check the registry for a CLSID.

BTW, don't forget about the User Group meetings ...

Cheers,

Andrew

>Hi All,
>
> Is there a way to check from VFP6.0 if Outlook is installed? I've created the following code to check if a reference can be created to Outlook:
>
>* ----- Check for existence of Outlook
>lError = .F.
>
>cError = ON("ERROR")
>
>ON ERROR lError = .T.
>
>* ----- Create Object Reference To Outlook
>oOutLook = CreateObject("Outlook.Application")
>
>ON ERROR &cError
>
>IF lError = .T.
>   * ----- Outlook found
>ELSE
>   * ----- Outlook not found
>ENDIF
>
>I've assumed that if I can't create an instance of outlook then it's not installed. This method probably isn't reliable so I was wondering if there is a reliable way to tell if outlook is installed. Registry key perhaps?
>
>Thanks,
>Gavin...


If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?


From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."


All my FoxTalk and other articles are available on my web site.


Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform