Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Como prever o tamanho do código gerado por _CryptAPI ?
Message
From
26/01/2002 10:03:16
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00610418
Message ID:
00611034
Views:
32
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform