Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Como prever o tamanho do código gerado por _CryptAPI ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00610418
Message ID:
00611034
Vues:
33
>O meu medo é usar essa classe e quando instalado em um cliente o sistema começar a emitir mensagens de erro por falta de DLL ou algo parecido.
>
>Qual a chance disto acontecer? Existe uma maneira de testar se está instalado ou não e emitir uma mensagem do tipo:
>
>"Para que este programa funcione, é necessário ter ..."


Vc pode usar o controlador do erro:
lLErro = .F.
lcErroVelho = ON ERROR()
ON ERROR llErro = .T.
loCrypt = NEWOBJECT("_cryptapi",HOME()+"\ffc\_crypt.vcx")
ON ERROR &lcErroVelho
IF llErro = .T. OR VARTYPE(loCrypt) != "O"
   * problema
ENDIF
HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform