> Linking
To ClientProtector In Your Application > Linking to ClientProtector™ Using Borland Delphi®
Linking to ClientProtector™ Using Borland Delphi®Please be sure you have read Linking To The ClientProtector COM Component In Your Application before you perform this procedure. If you run into trouble, you may prefer to start with the Sample Code. There are a set of three complete compile-able Delphi programs available. The following example was prepared and tested in Borland Delphi 6.0. The method we use here involves importing the COM object using the IDE enhancement Borland provides for importing type libraries. This is very easy to use and simplifies a great deal of code and memory management we would have to otherwise prepare ourselves. Note that, if you wish, there is a more "manual" way to use Delphi to access the ClientProtector COM server which does not require you to install a component wrapper on your component palette - however it is considerably more code you would have to write. We present the simplest way to access to object. Also note that there is a ready to install component package in the Samples directory, however, we recommend you go through the following procedure to create your own package.
When you use the component, the IDE will automatically add the "SSCProt_TLB" to your "uses" section. This unit provides visibility to the enumerated constants defined in RETURNCODES and CPDEBUGFLAGS (inside COM server). You have access to these defined constants directly.
|