Delphi几句怎么转成C++builder
inherited Create(AOwner);
FCanvas := TControlCanvas.Create;
TControlCanvas(FCanvas).Control := Self;
以上这几句是一个TGraphicControl的派生类的构造函数,怎么转成C++builder语言呢,刚学delphi不太懂。
[解决办法]
TGraphicControl::TGraphicControl(AOwner);FCanvas = new TControlCanvas;((TControlCanvas *)FCanvas)->Control = this;
[解决办法]
((TControlCanvas *)FCanvas)->Control = this;
这一句引起的,
可以忽略这种错误吧