Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check if outlook is available
Message
 
 
À
18/09/2001 06:34:03
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00557360
Message ID:
00557811
Vues:
12
This message has been marked as the solution to the initial question of the thread.
Peter,
In addition to what Nigel posted, you could probably use Rick Strahl's wwIPStuff utilities. HTTPPing gives you the ability to ask if a certain URL exists (similar to the way Ping can ask if a certain IP address exists). Because it uses the HTTP protocol over port 80, it usually isn't blocked by firewalls. If you get a response you can enable all the links. If not, disable what you need.

Check out www.west-wind.com.

HTH.

>Thanks,
>That means I have to create the Outlook object and after it fails react.
>Therefore a lot of time is waisted waiting for outlook and going through its silly dialog about local access etc.
>There are no low level API calls I could do to know if I have a network connection???
>I I could create a oApp.I_am_connected property I could make all web links invisible at the same time...
>
>Peter
>
>
>
>>>I have an application where I do automation with Outlook.
>>>On a laptop without connection to the network there is no outlook and my system breaks with an OLE error.
>>>Can I check invisibly, if outlook is available and if not disable the interface?
>>>Can I also check if the macro feature has been turned off, to hide that ugly window from MS's security patch<g>
>>>
>>>Peter
>>
>>Peter,
>>You can trap the error using an ON ERROR routine or if you are using a class to handle the functionality, you can use the Error event.
>>
>>Can't help you with the security issue. Sorry.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform