Visual Component Library

Visual Component Library (VCL) とは、視覚化された(ビジュアルな)ソフトウェアコンポーネントを元にして、Microsoft Windows用G…

Visual Component Library

Visual Component Library (VCL) とは、視覚化された(ビジュアルな)ソフトウェアコンポーネントを元にして、Microsoft WindowsGUIアプリケーションを作成するためのソフトウェアライブラリおよびフレームワークである。ボーランドが、自社のソフトウェア統合開発環境 (IDE) であるDelphiC++ Builderのために開発した。Object Pascalで記述されている。

VCLはボーランドのRADツールと密接に統合されており、プログラミング言語でコードを記述することなくGUI部品の配置や外観設定をGUI(フォームデザイナー)で視覚的かつ直感的に行なうこともできるようになっている[1]。これが人気の元である。

後に、同等の機能を持つクロスプラットフォームのライブラリとしてComponent Library for Cross Platform (CLX) がDelphi、C++ Builder、Kylix用に開発されたが、VCLの人気の前には太刀打ちできなかった。

VCLはオブジェクト指向クラスライブラリであり、System.TObjectクラス[2]を最上位基底クラスとする単一継承のオブジェクト階層をもっている。Object Pascalは(C++と異なり)実装の多重継承をサポートしておらず、代わりにインターフェイスを実装することによる型の多重継承をサポートする[3]。VCLでもインターフェイスによるポリモーフィズムが利用されている。例えばSystem.Classes.TComponentクラス[4]は、

TComponent = class(TPersistent, IInterface, IInterfaceComponentReference)

というようにTPersistentクラスから派生し、さらにIInterfaceおよびIInterfaceComponentReferenceインターフェイスを実装する。

Object Pascalにおける継承の機能やメカニズムはJavaとよく似ており、のちにC#にも受け継がれることになった。

派生

1999年6月8日、インプライズ(ボーランド)はマイクロソフトに対し12,500万ドルでその特許使用を認める契約をし[5]、後にVCLの派生ライブラリとして.NET Framework基本クラスライブラリが公開され、現在ではC#Visual Basic .NETを中心としたWindowsアプリケーション開発における主力ライブラリとなっているほか、Mono.NET CoreによりWindows以外のプラットフォームにも広がりを見せている。特にWindows Formsは、VCLの設計や開発スタイルを強く受け継いでいる。

問題点

VCLはWindows専用であり、他プラットフォームへの移植性はない。また、Delphi側の仕様起因でUnicode対応が遅れていたが、Delphi 2009でUnicode対応が強化された[6]

関連項目

脚注

  1. ^ Object Pascalが言語機能としてサポートしているプロパティが、IDEと親和性が高いことも寄与している。
  2. ^ TObjectは、Javaにおける暗黙の最上位基底クラスであるオブジェクト型java.lang.Objectに相当するが、Object Pascalにおけるオブジェクト型という用語は意味が異なるので注意されたい。
  3. ^ C++であっても、Microsoft Foundation Class (MFC) などのように単一継承のクラス階層で設計されているライブラリもある。
  4. ^ System.Classes.TComponent - RAD Studio API Documentation
  5. ^ 日経BP (1999年6月9日). “USNews Microsoft、かつてのライバルInpriseに資本参加”. 2013年1月11日時点のオリジナルよりアーカイブ。2009年8月4日閲覧。
  6. ^ Delphiにおける一般的なUnicodeへの移行テクニック

外部リンク

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.