|
|
| Ken Kazinski 2005-06-07, 4:05 pm |
| I have tried to use the Sleep function and I keep getting error C3861:
'Sleep': identifier not found, even with argument-dependent lookup
I have included #include <windows.h> in the begining of the file.
Any help would be appreciated.
| |
| Victor Bazarov 2005-06-07, 4:05 pm |
| Ken Kazinski wrote:
> I have tried to use the Sleep function
Any example of _how_ you "tried"?
> and I keep getting error C3861:
> 'Sleep': identifier not found, even with argument-dependent lookup
>
> I have included #include <windows.h> in the begining of the file.
>
> Any help would be appreciated.
This code:
#include <windows.h>
int main() {
Sleep(10000);
}
compiles fine for me even with VC++ v6.
V
| |
| Oleh Melnik 2005-06-11, 3:59 pm |
|
"Victor Bazarov" <v.Abazarov@comAcast.net> wrote in message
news:eD8XgT3aFHA.2884@tk2msftngp13.phx.gbl...
> Ken Kazinski wrote:
>
> Any example of _how_ you "tried"?
>
>
> This code:
>
> #include <windows.h>
> int main() {
> Sleep(10000);
> }
>
> compiles fine for me even with VC++ v6.
>
> V
>
Try 'using namespace std;' or 'std::Sleep(10000)'.
| |
| Duane Hebert 2005-06-11, 3:59 pm |
|
"Oleh Melnik" <stinger@friendsgames.com> wrote in message news:OltogaobFHA.3492@TK2MSFTNGP14.phx.gbl...
> Try 'using namespace std;' or 'std::Sleep(10000)'.
I hope this doesn't work <g>. Even though it would
be useful, AFAIK there is no std::Sleep(). Sleep()
is a windows function and should be found through
windows.h as Victor shows.
| |
| Victor Bazarov 2005-06-11, 3:59 pm |
| Oleh Melnik wrote:
> "Victor Bazarov" <v.Abazarov@comAcast.net> wrote in message
> news:eD8XgT3aFHA.2884@tk2msftngp13.phx.gbl...
>
> Try 'using namespace std;' or 'std::Sleep(10000)'.
Why should I try anything? It already compiles *fine* for me.
Did you pay attention when reading my post?...
V
|
|
|
|