Page History
ActiveXコントロールを購入する際は、設計用使用許諾がついたものを選択しなければなりません。この製品をインストールすれば、開発中のアプリケーションに組み込む使用許諾が得られます。実際に販売されている設計用使用許諾の内容は、開発者1人だけを対象とするものから、ネットワークでつながった複数台のPCを対象とするものまでさまざまです。
通常は、開発したアプリケーションに組み込んでコンパイルしたものを、制限なく配布する権利も含めて購入することになります。
アプリケーションを配布する際は、バイナリー形式のコントロール(.dllまたは.ocx)も添える必要がありますが、設計用使用許諾に付属している設定ファイルは配布しないでください。
設計用使用許諾
設計用使用許諾を取得して実際に使う際は、「ライセンス・キー」をインストールするのが普通です。これはレジストリに登録するのですが、手入力ではなく、専用のファイルを使って自動登録できるようになっています。
この使用許諾は、アプリケーションの開発時に限って使うことを認めるものです。
実行用使用許諾
コントロールを組み込んだアプリケーションを開発し、これを配布する際には、コントロール自身も組にして配布する必要があります。そのため、コントロールには実行用の使用許諾が別にあるのが一般的です。
コンパイル時に、ライセンス・キーが実行形式ファイルに埋め込まれます。コントロールの生成時に、このキーが挿入されることになります。起動されたコントロールは、このキーを調べて、正当なキーであれば自分自身を実行可能な状態にします。キーは実行形式ファイルに埋め込まれるので、配布先ではキーを別途インストールする必要がありません。バイナリ形式のActiveXコントロールのみ配布するだけで充分です。
Skip to end of metadataGo to start of metadata
When you purchase an ActiveX control, you buy a design-time license for the control. This license is installed on your PC when you install the product and it allows you to use the control in the applications you are developing. The products typically have various design-time licenses for sale. These range from single developer licenses to multiple seat and network licenses.
Usually when you buy a design-time license you also get permission to distribute unlimited copies of the control with your application as compiled object code.
When you distribute your application that uses an ActiveX control, you need to ship also the control in binary format (usually a .dll or an .ocx). Do not distribute the setup file that comes with the design-time license.
Design-time license
If a control has a design-time license it will usually install a license key when its setup program is run. The license key is usually entered into the registry although it can also be installed in a special file.
Having a design-time license allows you to use the control for developing applications.
Run-time license
When you have built and compiled an executable application that uses the control, you need to distribute this control together with the application so a customer can use it. Most of controls also support run-time licensing for this purpose.
At compile time a license key is embedded into the executable file and this key is then inserted into the control when it is created. The control checks this key and if it is valid the control starts up. Because a key is embedded into the executable, no license key is required to be installed on the customer's machine and only the ActiveX control's binary needs to be distributed.