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 » U++ community news and announcements » 2022.3rc5
Re: 2022.3rc4 [message #59423 is a reply to message #59410] Sat, 24 December 2022 11:02 Go to previous messageGo to previous message
lindquist is currently offline  lindquist
Messages: 33
Registered: March 2006
Location: Denmark
Member
Hi,
Found a problem in the release. When creating a "clip" for DoDragAndDrop, when using AppendFiles to build the clip, then program receiving the dropped file will see a list of single char paths.

The problem seems to be in the String -> WString conversion. Changing AppendFiles to use just String (and unicode=false), it works just fine.

eg.

// somethings broken here
	String dropFile = ConfigFile("foobar");
	VectorMap<String, ClipData> clip;
	AppendFiles(clip, { dropFile } );
	if (DoDragAndDrop(clip, img, DND_COPY) == DND_COPY) {
		// receiver sees {"f","o","o","b","a","r" } not "foobar"
	}


I hope this report is sufficient.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ide insert data/timestep/GUID
Next Topic: clang-format integration
Goto Forum:
  


Current Time: Mon May 13 20:36:02 CEST 2024

Total time taken to generate the page: 0.02465 seconds