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

  FORUM HardWare.fr
  Programmation

  cherche fonction en C

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

cherche fonction en C

n°66013
magot
Posté le 18-10-2001 à 11:38:37  profilanswer
 

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

mood
Publicité
Posté le 18-10-2001 à 11:38:37  profilanswer
 

n°66015
chrisbk
-
Posté le 18-10-2001 à 11:49:58  profilanswer
 

Sleep

n°66016
magot
Posté le 18-10-2001 à 11:51:24  profilanswer
 

CA

n°66017
magot
Posté le 18-10-2001 à 11:52:09  profilanswer
 

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

n°66022
evode
Meuaarf !! ReZo !!!
Posté le 18-10-2001 à 12:11:29  profilanswer
 

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 !!!
n°66026
magot
Posté le 18-10-2001 à 12:19:43  profilanswer
 

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

n°66034
H4dd3R
Q2
Posté le 18-10-2001 à 12:42:53  profilanswer
 

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

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation

  cherche fonction en C

 

Sujets relatifs
fonction 'like' sous oracle[php] fonction mail()
cherche compilateur pascal sous dos, mais <> de turbopascalcherche info sur le header d'un avi [VC++]
fonction de hashage, Aie !cherche bon GUI builder sous JAVA
Quelqu'un sait se servir de la fonction Shell_NotifyIcon?SVP Prgrammer un cercle en C++ (ou C) en fonction du cent. et du ray.
[PHP] Crée une fonction de recherche sur une base MySQL[matlab] paramètre optionnel dans une fonction ...
Plus de sujets relatifs à : cherche fonction en C


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR