Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - c++er

Pages: [1]
1
General / Re: Threads
« on: July 08, 2013, 07:33:32 pm »
Thanks Hiura for the fast answer.
But is this possible just with sf::Thread ?

2
General / Threads
« on: July 08, 2013, 07:16:36 pm »
Hi ! Today I finished my C++ book, and i started with SFML. I tried to learn Threads,but I dont know how to use them right.  My question is : How can I make a program that wait 10 seconds for a int to be inputted,and print something if the int was entered or something else if the int was not entered...
I though so:
A thread that Sleep(10000)'s,using Windows.h and a thread that cin's a number.The number is passed to the thread by reference.At the end of the sleep-thread I want to stop the input thread,but than I discovered that the thread cannot be stopped :( . How can I do this , using SFML threads ?
Thanks in advance :)

3
General / Re: Sfml-graphics-2.dll is MIA
« on: July 08, 2013, 02:05:25 pm »
"Now compile the project, and if you linked to the dynamic version of SFML, don't forget to copy the SFML DLLs (they are in <sfml-install-path/bin>) to the directory where your compiled executable is. Then run it, and if everything is ok you should see this:"

It's written in the tutorial.I had this problem too :P

Pages: [1]