cherche fonction en C

cherche fonction en C - Programmation

Marsh Posté le 18-10-2001 à 11:38:37    

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

Reply

Marsh Posté le 18-10-2001 à 11:38:37   

Reply

Marsh Posté le 18-10-2001 à 11:49:58    

Sleep

Reply

Marsh Posté le 18-10-2001 à 11:51:24    

CA

Reply

Marsh Posté le 18-10-2001 à 11:52:09    

desole pour la derniere reponse bon plus serieusement sleep ca se trouve dans quelle include et ca fonctionne comment?

Reply

Marsh Posté le 18-10-2001 à 12:11:29    

unistd.h
 
sinon il y a un site vraiment cool ki s'appelle Google.com ...
en cherchant bien dessus tu devrais rapidement trouver


---------------
Hyndex - Meuaarf !! ReZo !!!
Reply

Marsh Posté le 18-10-2001 à 12:19:43    

visual C++ ne connait pas <unistd.h> existe il une autre fonction qui marche sous visual???

Reply

Marsh Posté le 18-10-2001 à 12:42:53    

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++!! ;)


---------------
Athlon64 s754 10*200MHz - R9800Pro - 512MB DDR200MHz - ZX6RR - Q2[SupOp] - Tutorial Video: multilangues, multisstitres
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed