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] SFTPBrowser example build failed (SFTPBrowser example buil error: error LNK2019: unresolved external symbol __imp_CertCloseStore referenced in function winstore_close)
Re: SFTPBrowser example build failed [message #61294 is a reply to message #61292] Fri, 20 December 2024 08:25 Go to previous messageGo to previous message
Scott_Huang is currently offline  Scott_Huang
Messages: 27
Registered: December 2024
Promising Member
Hi Oblivion,

It worked without error in Release build mode with below new code:

This new method try write src into a String , and then write String to dest, so no issue of small/middle files,
but would losing visibility of progressing % during upload. Anyway to load by chunk and show progressing under new code? Thanks.

case PUT: {
			pi.Title(t_("Uploading ") << GetFileName(src)); // Not for use, only for testing
			String s = LoadFile(src);
			if(auto h = worker.OpenWrite(dest); h) {
				int n = worker.Put(h, ~s, s.GetLength());
				RLOG(String() << "Uploaded: " << n << ", filesize: " << s.GetLength());
				RDUMP(worker.IsError());
				if(worker.IsError())
					ErrorOK(DeQtf(worker.GetErrorDesc()));
				worker.Close(h);
			}
			else
				RLOG("Couldn't open file: " << src << ", error: " << worker.GetErrorDesc());
			break;
		}


old wrong code is:
case PUT: {
			pi.Title(t_("Uploading ") << GetFileName(src));
			FileIn fin(src);
			if(fin && !worker.SaveFile(dest, fin))
				ErrorOK(DeQtf(worker.GetErrorDesc()));
			break;
		}


Note: The most tricky thing is old code failed upload file when build by CLANG RELEASE & DEBUG MODE or VS2022 RELEASE MODE. Only work in VS2022 DEBUG build mode.
Do you able point out the key gap of the old code and try fix it? It is better have upload progressing bar too:) Thanks.

Or else, I have to use VS2022 DEBUG BUILD,then exe size is big. Or use your new code under RELEASE BUILD, but losing upload progressing progress.
Thanks.


Regards,
Scott Huang

[Updated on: Fri, 20 December 2024 08:41]

Report message to a moderator

 
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: Latest U++ PDF version user guide to describe framework/tips/examples
Next Topic: The UPP looks good -> Opportunities to evolve to better support RPA & AI
Goto Forum:
  


Current Time: Sun Apr 27 01:47:02 CEST 2025

Total time taken to generate the page: 0.03187 seconds