Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine if an email program is installed?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00752609
Message ID:
00752747
Vues:
10
>>I appologize, usually I add the name of the person, who gave the code to me. In this case I forgot to do it:
>
>>CheckDefaultEMail:
>
>#include registry.h
>local oRegistry, lcMailClient
>oRegistry = newobject("Registry","Registry.prg")
>**** getting the default email client NAME! **********
>lcMailClient = ;
>	oRegistry.ReadRegistryString(HKEY_LOCAL_MACHINE, ;
>	"Software\Clients\Mail",  "")
>
>if empty(m.lcMailClient)
>	=messagebox("No email client installed")
>	return ""
>endif
>
>return m.lcMailClient
>
>>You also need registry.prg and registry.h files Send me request by e-mail, if you don't have them.
>

>
>He should have it, doesn't he?, It's the same that comes with Fox Foundation Classes, doesn't it?

I use registry.prg from Rick Strahl. But it doesn't really matter in that particular case. His program is public domain and can be downloaded from west-wind site.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform