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 » Community » Newbie corner » String to std::string conversion
Re: String to std::string conversion [message #32857 is a reply to message #32853] Wed, 15 June 2011 08:07 Go to previous messageGo to previous message
Sender Ghost is currently offline  Sender Ghost
Messages: 301
Registered: November 2008
Senior Member
Seems, you wanted the path to selected file instead of path to selected directory.

Please, look on the following example:
#include <CtrlLib/CtrlLib.h>

using namespace Upp;

GUI_APP_MAIN
{
	FileSel fs;

	std::string stdPath;

	if (fs.ExecuteOpen())
	{
		String path = ~fs;

		PromptOK("From UPP\1::\1String:&\1" + path);

		stdPath = ~path;

		PromptOK("From std\1::\1string:&\1" + String(stdPath));
	}
}
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: MSVC 10 to Upp conversion
Next Topic: HttpClient and language choice (HTTP_ACCEPT_LANGUAGE)
Goto Forum:
  


Current Time: Mon May 27 00:21:55 CEST 2024

Total time taken to generate the page: 0.00529 seconds