TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: ROBERT LA FERTE
from: THOMAS MAEDER
date: 1998-02-03 17:07:00
subject: Builder C++

RF> I don't have it on this machine, but if I remember well:
RF>         strncpy(Table.Title, Edit1->Text.c_str(), sizeof(Table.Title
RF> should work quite well...  don't forget that the 'Text' member of Ed
RF> is a 'AnsiString' class, thus requires a conversion to be used like
RF> 'normal' C null-terminated char array.
Note that strncpy in general does *not* zero-terminate its target.
Thomas
---
 þ MM 1.0 #0113 þ Can I blame all of my spelling on line noise?
---------------
* Origin: McMeier & Son BBS (2:301/138)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.