社区
VCL组件使用和开发
帖子详情
有关TEdit的一个小问题,不过在下很急,望各位拔刀相助。
4241217
2004-05-02 04:28:10
char *p = Edit1->Text.c_str();
Edit6->Text = p;
在我写的程序里执行以上两条语句,会随机出现Edit6->Text和Edit1->Text的内容不相等。怎么解决啊,在下很急,望各位不吝赐教。
...全文
71
5
打赏
收藏
有关TEdit的一个小问题,不过在下很急,望各位拔刀相助。
char *p = Edit1->Text.c_str(); Edit6->Text = p; 在我写的程序里执行以上两条语句,会随机出现Edit6->Text和Edit1->Text的内容不相等。怎么解决啊,在下很急,望各位不吝赐教。
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
5 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
4241217
2004-05-03
打赏
举报
回复
这个方法可行,谢谢GeoPhoenix(天鸽)。已经送出30分,请注意查收。
GeoPhoenix
2004-05-02
打赏
举报
回复
char *p;
p = new char[Edit1->Text.Length()+1];
strcpy(p,Edit6->Text.c_str());
叶子哟
2004-05-02
打赏
举报
回复
因为你没有为它们分配内存!
4241217
2004-05-02
打赏
举报
回复
楼上误会了。
我的意思是为什么p所指向的字符串与Edit1->Text里的东东不同。
pmes
2004-05-02
打赏
举报
回复
Edit6->Text=Edit1->Text;
不就行了吗?
p是 (char *)型,
Text 是 AnsiString 型
matlab开发-T
EDIT
matlab开发-T
EDIT
。t
edit
使用模板创建m文件。
T
Edit
3-v3.10.17116
T
Edit
3软件 T
Edit
3_v3.10.17116.209.zip
T
Edit
30.rar
很 不 错 的 列 表 详 细 第 三 方 控 件
Android代码-T
Edit
T
Edit
T
Edit
is a simple text
edit
or for Android devices. T
Edit
includes a graphical file browser to make locating existing files and saving new files easy. Additionally T
Edit
enables you to keep multiple files open simultaneously, simply select the file tabs icon to be presented with a list of currently open documents. You can find various APK installers for T
Edit
at http://1337atr.weebly.com/t
edit
.html To the extent possible under law, the person who associated CC0 with this work has waived
调整 T
Edit
文本对齐
调整 T
Edit
文本对齐,限制
Edit
只能输入数字或其它字符
VCL组件使用和开发
604
社区成员
13,457
社区内容
发帖
与我相关
我的任务
VCL组件使用和开发
C++ Builder VCL组件使用和开发
复制链接
扫一扫
分享
社区描述
C++ Builder VCL组件使用和开发
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章