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++ MT-multithreading and servers » making thread
making thread [message #16893] Sat, 19 July 2008 20:33 Go to next message
TeCNoYoTTa is currently offline  TeCNoYoTTa
Messages: 138
Registered: July 2008
Location: Egypt
Experienced Member

hello again Very Happy Very Happy

i want to do some threading and what i understanded is that threading is very easy

all what i want is to call a function and it will work as a thread

like that
Thread my_thread;
my_thread.Run(download_cisn);


but i dont know why this error comes ??
c:\myapps\cisnotifier\CISNotifier.h(103) : error C2065: 'Thread' : undeclared identifier
c:\myapps\cisnotifier\CISNotifier.h(103) : error C2146: syntax error : missing ';' before identifier 'my_thread'
Re: making thread [message #16897 is a reply to message #16893] Sun, 20 July 2008 00:10 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 916
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

1. Check if you included <Core/Core.h>
2. Check if your configuration (top-leftmost drop box) - contains "MT". Usually it is "GUI" by default. To do multithreading you should change it to "GUI MT". To do this, click on this and press Insert, entering new line.

Is everything OK?

[Updated on: Sun, 20 July 2008 00:11]

Report message to a moderator

Re: making thread [message #16914 is a reply to message #16897] Sun, 20 July 2008 20:04 Go to previous messageGo to next message
TeCNoYoTTa is currently offline  TeCNoYoTTa
Messages: 138
Registered: July 2008
Location: Egypt
Experienced Member

thanks .......but there is another error appered
Thread my_thread;
my_thread.Run ( test );


this is the error

c:\myapps\cisnotifier\CISNotifier.h(101) : error C3867: 'CISNotifier::test': function call missing argument list; use '&CISNotifier::test'
to create a pointer to member
Re: making thread [message #16915 is a reply to message #16914] Sun, 20 July 2008 21:45 Go to previous messageGo to next message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
Are you passing a callback?

It should probably be:
thread.Run(THISBACK(test))
Re: making thread [message #16917 is a reply to message #16915] Mon, 21 July 2008 07:17 Go to previous message
TeCNoYoTTa is currently offline  TeCNoYoTTa
Messages: 138
Registered: July 2008
Location: Egypt
Experienced Member

thanks alot ....... it worked
Previous Topic: downloading file progress bar
Next Topic: knowing download speed and ProgressIndicator
Goto Forum:
  


Current Time: Sat Feb 16 16:09:51 CET 2019

Total time taken to generate the page: 0.00706 seconds