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 » U++ Core » How do I get a char * of the string stored in the String class?
Re: How do I get a char * of the string stored in the String class? [message #103 is a reply to message #97] Thu, 24 November 2005 12:09 Go to previous messageGo to previous message
gprentice is currently offline  gprentice
Messages: 260
Registered: November 2005
Location: New Zealand
Experienced Member


And I just noticed the squiggle operator returns a const char * so you don't need to cast get a const char *.


void gp1(const char * p)
{
	PromptOK(p);
}


void HelloWorld::About()
{
	PromptOK("{{1@5 [@9= This is the]::@2 [A5@0 Ultimate`+`+ Hello world sample}}");

	String abc = "hello";
	gp1(~abc);
}


Graeme
 
Read Message
Read Message
Read Message
Read Message
Read Message
Next Topic: Dynamic Linking
Goto Forum:
  


Current Time: Wed Sep 03 19:59:08 CEST 2025

Total time taken to generate the page: 0.10225 seconds