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 » Simple Thread (simple thread example.)
Simple Thread [message #55023] Mon, 05 October 2020 16:16 Go to previous message
lovmy is currently offline  lovmy
Messages: 44
Registered: November 2015
Member

Hi,

i try to create a simple thread in my application, this is a part of the code:

Processus::Processus() {}

Processus::~Processus() {}

void Processus::Start( String parametres )
{
	Thread().Run(THISBACK1(Boucle,parametres));
	while(Thread().GetCount());
}

void Processus::Boucle( String parametres )
{
	for (int i = 0; i < 10; ++i)
	{
		std::cout << i << ",";
	}
}


I have error:

F:\upp/uppsrc/Core/Callback.h (110): error: 'CLASSNAME' has not been declared

Can you help me ?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to load your GridCtrl in background thread
Next Topic: Translation files
Goto Forum:
  


Current Time: Sat Apr 20 06:18:13 CEST 2024

Total time taken to generate the page: 2.02893 seconds