Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
4462 connectés 

 


Dernière réponse
Sujet : cherche fonction en C
H4dd3R

Code :
  1. Sleep
  2. The Sleep function suspends the execution of the current thread for a specified interval.
  3. VOID Sleep(
  4.   DWORD dwMilliseconds   // sleep time in milliseconds
  5. );
  6. Parameters
  7. dwMilliseconds
  8. Specifies the time, in milliseconds, for which to suspend execution. A value of zero causes the thread to relinquish the remainder of its time slice to any other thread of equal priority that is ready to run. If there are no other threads of equal priority ready to run, the function returns immediately, and the thread continues execution. A value of INFINITE causes an infinite delay.
  9. Return Values
  10. This function does not return a value.
  11. Remarks
  12. A thread can relinquish the remainder of its time slice by calling this function with a sleep time of zero milliseconds.
  13. You have to be careful when using Sleep and code that directly or indirectly creates windows. If a thread creates any windows, it must process messages. Message broadcasts are sent to all windows in the system. If you have a thread that uses Sleep with infinite delay, the system will deadlock. Two examples of code that indirectly creates windows are DDE and COM CoInitialize. Therefore, if you have a thread that creates windows, use MsgWaitForMultipleObjects or MsgWaitForMultipleObjectsEx, rather than Sleep.
  14. QuickInfo
  15.   Windows NT: Requires version 3.1 or later.
  16.   Windows: Requires Windows 95 or later.
  17.   Windows CE: Requires version 1.0 or later.
  18.   Header: Declared in winbase.h.
  19.   Import Library: Use kernel32.lib.


 
Pense à regarder la doc de VisualC++!! ;)


Votre réponse
Nom d'utilisateur    Pour poster, vous devez être inscrit sur ce forum .... si ce n'est pas le cas, cliquez ici !
Le ton de votre message                        
                       
Votre réponse


[b][i][u][strike][spoiler][fixed][cpp][url][email][img][*]   
 
   [quote]
 

Options

 
Vous avez perdu votre mot de passe ?


Vue Rapide de la discussion
H4dd3R

Code :
  1. Sleep
  2. The Sleep function suspends the execution of the current thread for a specified interval.
  3. VOID Sleep(
  4.   DWORD dwMilliseconds   // sleep time in milliseconds
  5. );
  6. Parameters
  7. dwMilliseconds
  8. Specifies the time, in milliseconds, for which to suspend execution. A value of zero causes the thread to relinquish the remainder of its time slice to any other thread of equal priority that is ready to run. If there are no other threads of equal priority ready to run, the function returns immediately, and the thread continues execution. A value of INFINITE causes an infinite delay.
  9. Return Values
  10. This function does not return a value.
  11. Remarks
  12. A thread can relinquish the remainder of its time slice by calling this function with a sleep time of zero milliseconds.
  13. You have to be careful when using Sleep and code that directly or indirectly creates windows. If a thread creates any windows, it must process messages. Message broadcasts are sent to all windows in the system. If you have a thread that uses Sleep with infinite delay, the system will deadlock. Two examples of code that indirectly creates windows are DDE and COM CoInitialize. Therefore, if you have a thread that creates windows, use MsgWaitForMultipleObjects or MsgWaitForMultipleObjectsEx, rather than Sleep.
  14. QuickInfo
  15.   Windows NT: Requires version 3.1 or later.
  16.   Windows: Requires Windows 95 or later.
  17.   Windows CE: Requires version 1.0 or later.
  18.   Header: Declared in winbase.h.
  19.   Import Library: Use kernel32.lib.


 
Pense à regarder la doc de VisualC++!! ;)

magot visual C++ ne connait pas <unistd.h> existe il une autre fonction qui marche sous visual???
evode unistd.h
 
sinon il y a un site vraiment cool ki s'appelle Google.com ...
en cherchant bien dessus tu devrais rapidement trouver
magot desole pour la derniere reponse bon plus serieusement sleep ca se trouve dans quelle include et ca fonctionne comment?
magot CA
chrisbk Sleep
magot JE voudrai savoir s'il est possible de faire un wait, c'est d'arreter le programme pendant quelque seconde ( une serie de NOP) et cela en C sous visual basic.
 
Je cherche aussi l'option de printf (telle que \n) qui permet de faire clignotter qqchose a l'ecran.
 
Merci

Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)