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 » [SOLVED] WIN32 API "MoveFile" and LineEdit Ctrl issue
Re: WIN32 API "MoveFile" and LineEdit Ctrl issue [message #37869 is a reply to message #37856] Mon, 19 November 2012 11:44 Go to previous messageGo to previous message
deep is currently offline  deep
Messages: 263
Registered: July 2011
Location: Bangalore
Experienced Member
index.php?t=getfile&id=3928&private=0I did some quick check by putting the v2 strings in String Buffer

Results shows there 0x0D at the end of the string. I think this may be the error.

	String s3;

	for ( int i = 0; i < v1.GetCount(); i++ ) {
		StringBuffer sb1;
		int len = v2[i].GetLength() ;
		sb1.SetLength ( len );
		sb1 = v2[i];

		for ( int i = 0; i < len; i++ ) {
			s3 << Format ( "%02X", ( byte ) sb1[i] ) << "|" ;
		}

		s3 << "\n\n";

		/*
				r=MoveFile(v1[i],v2[i]);

				(!r)? err_no=GetLastError() : err_no=0;

				s<<"RENAME "
				 <<v1[i]<<" => "<<v2[i]
				 <<" [Done="<<r<<"] [Error="
				 <<err_no<<"]\n";
		*/
	}

	s << "\n" << s3 << "\n";


	// PRINTING THE RESULTS
	f.Set ( s );
  • Attachment: movefile.JPG
    (Size: 38.01KB, Downloaded 895 times)


Warm Regards

Deepak
 
Read Message icon5.gif
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: Frameless(true); bug, my error or ???
Next Topic: EditDoubleSpin
Goto Forum:
  


Current Time: Thu May 09 03:53:25 CEST 2024

Total time taken to generate the page: 0.02352 seconds