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 » operation involving "\\" x "\" characters in directories and files
operation involving "\\" x "\" characters in directories and files [message #55098] Sun, 11 October 2020 03:47 Go to next message
BetoValle is currently offline  BetoValle
Messages: 203
Registered: September 2020
Location: Brasil Valinhos SP
Experienced Member
I initially realized that the getDirectories function returned without the "\".
I saw that you use DeQtf to correct "\".
I just didn't realize that getDirectories also adds "ยด"
in your content and I ended up using the replace string at the end.

I question: is it all this or is there a other alternative?

i.e.
String dir = DeQtf(GetCurrentDirectory());
dir.Replace("`","");
Re: operation involving "\\" x "\" characters in directories and files [message #55101 is a reply to message #55098] Sun, 11 October 2020 09:30 Go to previous messageGo to next message
omari is currently offline  omari
Messages: 266
Registered: March 2010
Experienced Member
Hi,

DeQtf is a format function, it is used to prepare string for display in a Ctrl that support Qtf like RichTextView or Label.

for directory separator manipulation, you can use AppendFileName :

	String dir = GetCurrentDirectory();
	String file = AppendFileName(dir, "file.ext");





regards
omari.
icon14.gif  Re: operation involving "\\" x "\" characters in directories and files [message #55105 is a reply to message #55101] Sun, 11 October 2020 14:02 Go to previous message
BetoValle is currently offline  BetoValle
Messages: 203
Registered: September 2020
Location: Brasil Valinhos SP
Experienced Member
thanks!
Previous Topic: acces help chm files (windows)
Next Topic: C++ templated class referencing each other
Goto Forum:
  


Current Time: Wed Jun 12 19:27:59 CEST 2024

Total time taken to generate the page: 0.02158 seconds