Method not overridden error

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
vanmeir
Posts: 13
Joined: Thu 19 May 2011 09:34
Location: The Netherlands
Contact:

Method not overridden error

Post by vanmeir » Tue 25 Aug 2015 11:44

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

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Method not overridden error

Post by ViktorV » Tue 25 Aug 2015 12:22

To solve the problem you should add the ScCryptoAPIStorage unit to the uses clause of your unit.

vanmeir
Posts: 13
Joined: Thu 19 May 2011 09:34
Location: The Netherlands
Contact:

Re: Method not overridden error

Post by vanmeir » Tue 25 Aug 2015 13:12

Well, that works just fine!

Thank you for the quick reply.

Frans

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Method not overridden error

Post by ViktorV » Tue 25 Aug 2015 14:18

It is good to see that the problem has been solved.
Feel free to contact us if you have any further questions about SecureBridge.

Post Reply