Click here to Skip to main content
15,902,112 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Draw filled circle Pin
LittleYellowBird1-Apr-10 1:14
LittleYellowBird1-Apr-10 1:14 
AnswerRe: Draw filled circle Pin
Mohan Ramachandra1-Apr-10 1:15
Mohan Ramachandra1-Apr-10 1:15 
AnswerRe: Draw filled circle Pin
KarstenK1-Apr-10 2:11
mveKarstenK1-Apr-10 2:11 
QuestionButterworth low pass filter in C? Pin
nam4258931-Mar-10 21:47
nam4258931-Mar-10 21:47 
QuestionRe: Butterworth low pass filter in C? Pin
CPallini31-Mar-10 23:13
mveCPallini31-Mar-10 23:13 
AnswerRe: Butterworth low pass filter in C? Pin
«_Superman_»31-Mar-10 23:48
professional«_Superman_»31-Mar-10 23:48 
AnswerRe: Butterworth low pass filter in C? Pin
LittleYellowBird1-Apr-10 3:43
LittleYellowBird1-Apr-10 3:43 
Questionany idea why my select does not work(visual c++ ?) Pin
Mugiwara31-Mar-10 20:23
Mugiwara31-Mar-10 20:23 
#include "stdafx.h"
#include <conio.h>
#include <stdio.h>
#include <Winsock2.h>
#pragma comment(lib,"Ws2_32.lib")

int _tmain(int argc, _TCHAR* argv[])
{
 // Sleep for 2 sec
 struct timeval tv;
 tv.tv_sec = 2;
 tv.tv_usec = 0;
 
 printf("Time not elapsed");
 
 select(NULL, NULL, NULL, NULL, &tv);
 
 printf("\nTime elapsed");
 
 return 0;
}




There should be a kind of delay (2 seconds), but it does not work, i cant see any delay.

what happening?
AnswerRe: any idea why my select does not work(visual c++ ?) Pin
hanq_3891013031-Mar-10 20:40
hanq_3891013031-Mar-10 20:40 
GeneralRe: any idea why my select does not work(visual c++ ?) Pin
Mugiwara13-Apr-10 3:44
Mugiwara13-Apr-10 3:44 
AnswerRe: any idea why my select does not work(visual c++ ?) Pin
Stuart Dootson31-Mar-10 20:57
professionalStuart Dootson31-Mar-10 20:57 
AnswerRe: any idea why my select does not work(visual c++ ?) Pin
Cedric Moonen31-Mar-10 21:22
Cedric Moonen31-Mar-10 21:22 
AnswerRe: any idea why my select does not work(visual c++ ?) Pin
Moak31-Mar-10 21:46
Moak31-Mar-10 21:46 
QuestionListview Sorting Pin
arun_pk31-Mar-10 18:38
arun_pk31-Mar-10 18:38 
AnswerRe: Listview Sorting Pin
Cool_Dev31-Mar-10 19:18
Cool_Dev31-Mar-10 19:18 
GeneralRe: Listview Sorting Pin
arun_pk31-Mar-10 19:22
arun_pk31-Mar-10 19:22 
GeneralRe: Listview Sorting Pin
Iain Clarke, Warrior Programmer31-Mar-10 21:23
Iain Clarke, Warrior Programmer31-Mar-10 21:23 
GeneralRe: Listview Sorting Pin
arun_pk31-Mar-10 22:02
arun_pk31-Mar-10 22:02 
AnswerRe: Listview Sorting Pin
Eugen Podsypalnikov31-Mar-10 19:40
Eugen Podsypalnikov31-Mar-10 19:40 
GeneralRe: Listview Sorting Pin
arun_pk31-Mar-10 19:50
arun_pk31-Mar-10 19:50 
GeneralRe: Listview Sorting Pin
Eugen Podsypalnikov31-Mar-10 20:39
Eugen Podsypalnikov31-Mar-10 20:39 
GeneralRe: Listview Sorting Pin
arun_pk31-Mar-10 20:44
arun_pk31-Mar-10 20:44 
GeneralRe: Listview Sorting Pin
arun_pk20-Apr-10 19:30
arun_pk20-Apr-10 19:30 
GeneralRe: Listview Sorting Pin
Eugen Podsypalnikov20-Apr-10 21:53
Eugen Podsypalnikov20-Apr-10 21:53 
GeneralRe: Listview Sorting Pin
arun_pk20-Apr-10 22:07
arun_pk20-Apr-10 22:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.