Page 1 of 1

Method not overridden error

Posted: Tue 25 Aug 2015 11:44
by vanmeir
Hello,

when I try to import a certificate into a TScCertificate component I get the message:
Method is not overridden in the inherited class
I used the following lines of code :

Code: Select all

  
uses .., ScBridge, ....

.
.
.
procedure ImportAIDCertificate;
  var
    LFileStream: TFileStream;
  begin
    if (FCertFileName = '') then
      raise Exception.Create(rsNoCertFileSpecified)
    else if not TFile.Exists(FCertFileName) then
      raise Exception.CreateFmt(rsCertFileNotFound, [FCertFileName]);

    LFileStream := TFileStream.Create(FCertFileName, fmOpenRead);
    try
      FAIDCertificate.ImportFrom(LFileStream, '');         <---------- Error location
    finally
      LFileStream.Free;
    end;
  end;
.
.
.
Can anyone tell me what I'm doing wrong?

Best Regards,
Frans

Re: Method not overridden error

Posted: Tue 25 Aug 2015 12:22
by ViktorV
To solve the problem you should add the ScCryptoAPIStorage unit to the uses clause of your unit.

Re: Method not overridden error

Posted: Tue 25 Aug 2015 13:12
by vanmeir
Well, that works just fine!

Thank you for the quick reply.

Frans

Re: Method not overridden error

Posted: Tue 25 Aug 2015 14:18
by ViktorV
It is good to see that the problem has been solved.
Feel free to contact us if you have any further questions about SecureBridge.