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 » Bugs in AppendFiles for Win32 (CtrlCore)
Bugs in AppendFiles for Win32 (CtrlCore) [message #48854] Fri, 13 October 2017 10:48 Go to next message
SergeA is currently offline  SergeA
Messages: 13
Registered: October 2015
Location: Ukraine
Promising Member
Bugs in win32clip.cpp
void AppendFiles(VectorMap<String, ClipData>& clip, const Vector<String>& files)
{
	WString wfiles;
	for(int i = 0; i < files.GetCount(); i++)
		wfiles << files[i].ToWString() << wchar('\0'); //Fix
//Bugs		wfiles << files[i].ToWString() << "\0";
.....
Re: Bugs in AppendFiles for Win32 (CtrlCore) [message #48855 is a reply to message #48854] Fri, 13 October 2017 13:47 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 11844
Registered: November 2005
Ultimate Member
Thanks, applied.
Re: Bugs in AppendFiles for Win32 (CtrlCore) [message #48878 is a reply to message #48855] Thu, 19 October 2017 12:04 Go to previous messageGo to next message
SergeA is currently offline  SergeA
Messages: 13
Registered: October 2015
Location: Ukraine
Promising Member
Bugs not fixed in Upp Version 11387 Crying or Very Sad

Test program:

#include <Core/Core.h>
#include <CtrlCore/CtrlCore.h>
using namespace Upp;

CONSOLE_APP_MAIN
{
	VectorMap<String, ClipData> clip;
	Vector<String> files = { "11.bmp", "22.bmp" };
	AppendFiles(clip, files);
	Vector<String> vs = GetClipFiles(clip.Get("files").Render());
	DUMP(vs);
}
//Before Fix
DUMP(vs) 
vs = [11.bmp22.bmp, 攀牆敥牆敥コ牆敥牆敥牆敥]

//After Fix
DUMP(vs) 
vs = [11.bmp, 22.bmp]


Please fix in file Win32Clip.cpp lineno: 506
from
wfiles << files[i].ToWString() << "\0"; //-- Bugs
to
wfiles << files[i].ToWString() << wchar('\0'); //++ Fix

Thanks!
Re: Bugs in AppendFiles for Win32 (CtrlCore) [message #48881 is a reply to message #48878] Thu, 19 October 2017 15:59 Go to previous message
mirek is currently offline  mirek
Messages: 11844
Registered: November 2005
Ultimate Member
Sorry, forgot to commit.

Mirek
Previous Topic: Request: please make Range classes compatible with Vector!
Next Topic: Source code from github doesn't compile
Goto Forum:
  


Current Time: Fri Apr 26 05:43:43 CEST 2019

Total time taken to generate the page: 0.01546 seconds