VCL for Visual C++

About VCL for Visual C++

VCL for Visual C++ is a technology that allows Visual C++ developers to use most of the native Delphi and C++ Builder components without the need to rewrite them or to write any wrapper classes or ActiveX wrappers. The technology allows a direct usage of any VCL package in Visual C++. By using this technology you can write a complex Visual C++ application with just a few lines of code.

VCL for Visual C++ supports fully the OpenWire project .

The technology is a Copyright of Boian Mitov. If you are interested in obtaining a license to use the technology, please contact us directly at mitov@mitov.com.

The technology is used in the VideoLabSignalLabAudioLabVisionLab and PlotLab VCL libraries.

 

 

How it Works

 

/system/imgs/3/original/VCVCLDiagram.gif?1311355395

The Visual C++ application will use a set of C++ classes to create instances of component proxies.

The library will call a VCLLoader DLL. The VCLLoader will load one or more VCL packages, and will create instances of the VCL components.

Support Levels

 

There are two levels of support in the current version of the technology.

Level 1 support:

Advantages:

  • Allows access to any published VCL property from a VC++ application.
  • Does not require VCL component source code to be available.

 

Disadvantages:

  • Does not allow access of public properties and public methods.
  • Requires a non natural C++ syntax to be used.

 

Suitable for :

  • VCL end users.

 

 Visual C++ Example:

 

// Create a button at 10, 10 with size 100, 30
CVCLControl Button1( h_Wnd, “TButton”, 10, 10, 100, 30 );

// Set the caption to “Demo Button”
Button1.Properties[ “Caption” ] = “Demo Button”;

// Set an OnClick event:
Button1.SetEvent( “OnClick”, &CMyDialog::OnClickHandler, this );


重载[]

CRow& operator[](DWORD index);

Level 2 support:

Advantages:

  • Allows full access to any published property, public functions and limited access to some public properties.
  • Provides natural VC++ class wrappers for the VCL components, and all the VC++ features can be used including code completion.

 

Disadvantages:

  • The VCL component source must be available for parsing, in order the VC++ proxy classes to be generated.

 

Suitable for :

  • VCL component vendors.

 

 Visual C++ Example:

 

// Create a button at 10, 10 with size 100, 30
CVCLButton Button1( h_Wnd, 10, 10, 100, 30 );

// Set the caption to “Demo Button”
Component1.Caption = “Demo Button”;

// 

Set an OnClick event:

Component1.OnClick.SetEvent( this, &CMyDialog::OnClickHandler, );


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值