C++Builder 程序员博客
3 Sep
在对控件的属性操作的时候,出现了内存地址错误:Access violation address 40106167 in module 'vcl60.bpl ' Read of address 00000057
TRadioButton *rb_do;
rb_do-> Visible = true;
TRadioButton *rb_do = new TRadioButton(Application);
rb_do-> Name = "Ra "; //必须指定
rb_do-> Parent = this; //必须指定
rb_do-> Visible = true;
rb_do-> Left = 10;
rb_do-> Top = 10;
动态生成的要有name 和 parent