login about faq

The ActiveX (CHILKATCRYPT2Lib_TLB) that I downloaded does not contain TChilkatCrypt2. In fact, it does not contain any Delphi classes. The file that I downloaded is CryptActiveX-9.3.1-win32.msi. I want to use ReEncode Where did I go wrong?

asked Jul 30 '12 at 06:46

bryanw's gravatar image


When using any ActiveX with Delphi, you must "import" the ActiveX component into Delphi. This generates the .dcr, and .pas wrappers. For example, after importing the ChilkatCrypt2.dll (i.e. "Chilkat Crypt"), you will find the following files in the C:\Documents and Settings\Chilkat\My Documents\RAD Studio\9.0\Imports\ directory:



answered Jul 30 '12 at 10:51

chilkat's gravatar image

chilkat ♦♦

Thanks. But I did that. The problem is that CHILKATCRYPT2Lib_TLB.pas does not contain TChilkatCrypt2. I have successfully used CHILKATRSALib_TLB which contains TChilkatRsa = class(TOleControl). But CHILKATCRYPT2Lib_TLB contains no classes; only interfaces, e.g. IChilkatCrypt2 = interface(IDispatch). I was expecting to see TChilkatCrypt2 = class(TOleControl) in CHILKATCRYPT2Lib_TLB.pas.

(Jul 30 '12 at 18:22) bryanw

I'm not seeing the same problem. I imported in Delphi XE2 and it works fine:

// *********************************************************************//
// OLE Control Proxy class declaration
// Control Name     : TChilkatCrypt2
// Help String      : ChilkatCrypt2 Class
// Default Interface: IChilkatCrypt2
// Def. Intf. DISP? : No
// Event   Interface: _IChilkatCrypt2Events
// TypeFlags        : (2) CanCreate
// *********************************************************************//
  TChilkatCrypt2PercentDone = procedure(ASender: TObject; pctDone: Integer) of object;
  TChilkatCrypt2AbortCheck = procedure(ASender: TObject; out abort: Integer) of object;

TChilkatCrypt2 = class(TOleControl)
    FOnPercentDone: TChilkatCrypt2PercentDone;
    FOnAbortCheck: TChilkatCrypt2AbortCheck;
    FIntf: IChilkatCrypt2;
    function  GetControlInterface: IChilkatCrypt2;
    procedure CreateControl;

answered Jul 30 '12 at 18:48

chilkat's gravatar image

chilkat ♦♦

Thanks. I uninstalled Chilkat Crypt ActiveX and installed/imported it again but (as expected) got the same result. Must be a Delphi 2010 thing. Want to send me your .pas? :-)

(Jul 30 '12 at 21:14) bryanw
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Jul 30 '12 at 06:46

Seen: 1,498 times

Last updated: Jul 31 '12 at 07:57

powered by OSQA