//*************************************************************** // From the book "Win32 System Services: The Heart of Windows 98 // and Windows 2000" // by Marshall Brain // Published by Prentice Hall // // Copyright 1995, by Prentice Hall. // // This code demonstrates a simple single-thread application. //*************************************************************** // nothread.cpp #include #include UINT count; void main(void) { CHAR retStr[100]; count=0; while(1) { cout << "Press to display the count... "; cin.getline(retStr, 100); cout << "The count is: " << count << endl << endl; } }