![]() Also cannot be referenced by name and cannot be pooled. The simplest way to create a connection definition is to fill in the TFDConnection.Params property.Ĭan be created at design time using the TFDConnection component editor. Has no name, is not stored in a connection definition file, and is not managed by the FDManager. The application needs to create a private connection definition after each program restarts and cannot share it with the other programs. Has a unique name, is managed by the FDManager, but is NOT stored in a connection definition file.Ĭonnection definition parameters are not visible "outside" the application. The parameters (server address, DB name, and so on) are publicly visible and may be changed incidentally.įDManager has to be reactivated or the Delphi IDE has to be restarted to make a newly added definition visible at design time. May be defined once and reused across many applications. Has a unique name, is managed by the FDManager, and is stored in a connection definition file. For the list of supported database management systems and corresponding parameters, see FireDAC Database Connectivity.įireDAC supports 3 connection definition kinds: ![]() It is the equivalent of a BDE alias, ADO UDL (stored OLEDB connection string), or ODBC Data Source Name (DSN). 5 Creating a Temporary Connection DefinitionĪ connection definition is a set of parameters that defines how to connect an application to a DBMS using a specific FireDAC driver.4 Creating a Private Connection Definition.3 Creating a Persistent Connection Definition.Copy and Paste the generated Activation Key in the License Wizard launched when your application starts up and follow the steps in the wizard.Select the Product (Demo 1.0 for trials) and click Ok.To generate a license key for testing purposes: The next time you open your Delphi application the ValidateLicenseAtStartup method should get triggered and perform the license validation. Result:= lv.QlmLicenseObject.LaunchProcess (qlmWizard, wizardArgs, true, true) LicenseValid:=lv.ValidateLicenseAtStartup(licenseBinding, needsActivation, errorMsg) įunction TAppForm.DisplayLicenseForm() : Integer wizardArgs := '/settings "' + settingsFile + '" /computerID ' + computerID If you use a LicenseBinding of type UserDefined, you must pass the computerID WizardArgs := '/settings "' + settingsFile + '"' QlmWizard := ExtractFilePath (Application.ExeName) + 'QlmLicenseWizard.exe' SettingsFile := ExtractFilePath (Application.ExeName) + 'Demo 1.0.lw.xml' LicenseBinding := ELicenseBinding_ComputerName QlmHardware := lv.CreateQlmHardwareObject () ĬomputerID := qlmHardware.GetMachineName() Example of getting a unique identifier Procedure TAppForm.FormCreate(Sender: TObject) Mofify the class name below (TAppForm) to match your own class. Add the code similar to the code below where you want to perform the license validation. function DisplayLicenseForm () : Integer ĩ.uses QlmLicenseLib_TLB, LicenseValidator.Add the following to the uses statement:.In your app's module where you want to add license validation, add the following code: The files QlmLicenseLib.dll, QlmLicenseWizard.exe and the XML settings file must be configured to be deployed to the same folder as your executable.Ĩ. %Public%\Documents\Quick License Manager\Samples\qlmpro\Windows\Delphi\WizardSample\QlmLicenseLib_TLB.pasĦ. Add the following files to your project:ħ.%Public%\Documents\Quick License Manager\Samples\qlmpro\Windows\Delphi\WizardSample\mscorlib_TLB.pas.%Public%\Documents\Quick License Manager\Samples\qlmpro\Windows\Delphi\WizardSample\mscoree_TLB.pas.C:\Program Files\Soraco\QuickLicenseMgr\Redistrib\.net 4.0\QlmLicenseWizard.exe.C:\Program Files\Soraco\QuickLicenseMgr\Redistrib\.net 4.0\QlmLicenseLib.dll.Copy the following files to your project's folder: : Select the folder where your project source code is located and click Save.ĥ. Open your Delphi project in RAD Studioĥ.You can select the binding of your choice by setting the QlmLicenseBinding property located in the section "6. : Leave the default settings or customize the look & feel if needed. By default, QLM will bind the license to the Computer Name.: Select the product to protect and the License Server.Go to the "Protect your application tab": Create a product from the “Define Product” tab or use the Demo 1.0 product if you are evaluating QLM.ģ. Note that the steps below assume you have a QLM License Server already setup.Ģ. This guide provides a step by step procedure to protect a Delphi app.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |