Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » LineEdit, EditFields, DocEdit » EditString: how to convert data with "~" operator to char*?
Re: Editstring control [message #1389 is a reply to message #1387] Wed, 01 March 2006 23:55 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
zsolt wrote on Wed, 01 March 2006 17:36

String s = edit.GetData();
const char *cs = ~s;



BTW, instead of .GetData you can use ~ here too, and you do not need '~' for converting as there is operator const char*:

String s = ~edit;
const char *cs = s;

String::operator~ is reserved just for ambiguous cases like

printf("%s", ~s);

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: EditInt callback?
Next Topic: DocEdit bug
Goto Forum:
  


Current Time: Wed Apr 24 01:40:49 CEST 2024

Total time taken to generate the page: 0.04931 seconds