Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

String field

Status
Not open for further replies.

mayu03

Programmer
Joined
Oct 3, 2003
Messages
91
Location
US
how to replace char array[15] with string field?
 
Just assign it to a CString object:
Code:
char array1[]="George";
char array2[15];
strcpy(array2,"George");
CString sTemp1 = array1;
CString sTemp2= array2;

-obislavu-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top