Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. void f()
  2. {
  3. printf("Hello");
  4. }
  5. int main()
  6. {
  7. SetTimer(NULL, 0, 1000*60,(TIMERPROC) &f);
  8. }
  9.  
  10. void CALLBACK f(HWND hwnd, UINT uMsg, UINT timerId, DWORD dwTime)
  11. {
  12. printf("Hello");
  13. }
  14.  
  15. int main()
  16. {
  17. MSG msg;
  18.  
  19. SetTimer(NULL, 0, 1000*60,(TIMERPROC) &f);
  20. while(GetMessage(&msg, NULL, 0, 0)) {
  21. TranslateMessage(&msg);
  22. DispatchMessage(&msg);
  23. }
  24.  
  25. return 0;
  26. }
  27.  
  28. void CALLBACK DoCircuitHighlighting(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
  29. {
  30. // Your logic here...
  31. }
  32.  
  33. SetTimer(5, 3000, DoCircuitHighlighting);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement