(PowerBuilder) LastErrorText
How to get RSA debugging information. If any RSA method returns a failed status, check the contents of the LastErrorText string property. Send it to support@chilkatsoft.com if you need further help.
integer li_rc
oleobject loo_Rsa
integer li_Success
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
loo_Rsa = create oleobject
// Use "Chilkat_9_5_0.Rsa" for versions of Chilkat < 10.0.0
li_rc = loo_Rsa.ConnectToNewObject("Chilkat.Rsa")
if li_rc < 0 then
destroy loo_Rsa
MessageBox("Error","Connecting to COM object failed")
return
end if
li_Success = loo_Rsa.GenerateKey(1024)
if li_Success <> 1 then
// The LastErrorText provides detailed information about
// any failure. It is standard to all Chilkat components.
// This is good information to send to support@chilkatsoft.com
Write-Debug loo_Rsa.LastErrorText
destroy loo_Rsa
return
end if
destroy loo_Rsa
|