Lee's C++ Builder Programming Notes
YKLee's Programming Notes on C++ Builder
Thursday, October 22, 2009
如何將 AnsiString 轉成 char 資料型態?
.c_str(); // for 舊版 C++ Builder
.t_str(); // for 新版 C++ Builder 2009
Example:
fopen(OpenDialog1->FileName.t_str(),"r");
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment