Is there a command for console projects that it stops for a certain ammount of time like Sleep for win apps, and i don't mean stop like system("PAUSE"), but i mean pause it for a certain amount of tiem then continue. Thank you for your answer
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Not 'like' Sleep(), but Sleep() itself. What makes you thiong you cannot call Win32 API calls from console apps? Those that make sense (i.e. largely not associated with Windows event messaging), can be called freely.
As easy as this:
include <windows.h>
include <tchar.h>
int main()
{
MessageBox( 0, _T("Hey! I'm a console app."), _T("Console App"), MB_ICONEXCLAMATION|MB_OK ) ;
Is there a command for console projects that it stops for a certain ammount of time like Sleep for win apps, and i don't mean stop like system("PAUSE"), but i mean pause it for a certain amount of tiem then continue. Thank you for your answer
thx cpns
You might find something of use here:
http://www.google.com/search?hl=en&q=dev-c%2B%2B+sleep&btnG=Search
> like Sleep for win apps
Not 'like' Sleep(), but Sleep() itself. What makes you thiong you cannot call Win32 API calls from console apps? Those that make sense (i.e. largely not associated with Windows event messaging), can be called freely.
As easy as this:
include <windows.h>
include <tchar.h>
int main()
{
MessageBox( 0, _T("Hey! I'm a console app."), _T("Console App"), MB_ICONEXCLAMATION|MB_OK ) ;
}
Clifford
> thiong
think
I wish this forum had an edit facility!