In C# if you want the thread to pause you would use:

System.Threading.Thread.Sleep(300);

However, I cannot seem to find a C++ equivalent to this?
How would I do this, or is it just not possible? Any help is appreciated.

Recommended Answers

All 3 Replies

And note you have to include windows.h in order to use Sleep()

Thanks that worked perfectly.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.