Click here to Skip to main content
15,914,066 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Copy Folder File Data Pin
David Crow24-Sep-08 4:15
David Crow24-Sep-08 4:15 
Questionchange specifice dialog color Pin
anilaabc23-Sep-08 19:53
anilaabc23-Sep-08 19:53 
AnswerRe: change specifice dialog color Pin
sashoalm23-Sep-08 20:11
sashoalm23-Sep-08 20:11 
AnswerRe: change specifice dialog color Pin
CPallini23-Sep-08 21:58
mveCPallini23-Sep-08 21:58 
QuestionImage Processing related... Pin
LijaGeorge23-Sep-08 19:34
LijaGeorge23-Sep-08 19:34 
AnswerRe: Image Processing related... Pin
fzhsheng23-Sep-08 19:41
fzhsheng23-Sep-08 19:41 
AnswerRe: Image Processing related... Pin
CPallini23-Sep-08 21:53
mveCPallini23-Sep-08 21:53 
QuestionHow can I calculate the speed of file transfer using recv function on client? the code a client presented as below Pin
Pearson_Bee23-Sep-08 19:33
Pearson_Bee23-Sep-08 19:33 
How can I calculate the speed of file transfer using recv function on client?
The code a client present as below,

__int64 iFileSize=0;
__int64 iPos=0;

//Get the size of file from server
char *sizeBuff[64]={'\0'};
DWORD dwRead=recv(Socket,sizeBuff,64,0);
iFileSize=_atoi64(sizeBuff);

char readBuff[BUFFSIZE]={'\0'};
while(iPos<ifilesize)>
{
dwRead=recv(Socket,readBuff,BUFFSIZE,0);
//here write to local file
iPos+=(__int64)dwRead;
//Question here: how can I carry out the speed of reveiving? as k/s or kb/s
}

//Thanks so much and I'll appreciate it
QuestionRe: How can I calculate the speed of file transfer using recv function on client? the code a client presented as below Pin
Mark Salsbery24-Sep-08 6:47
Mark Salsbery24-Sep-08 6:47 
AnswerRe: How can I calculate the speed of file transfer using recv function on client? the code a client presented as below Pin
Pearson_Bee24-Sep-08 18:43
Pearson_Bee24-Sep-08 18:43 
GeneralRe: How can I calculate the speed of file transfer using recv function on client? the code a client presented as below Pin
Mark Salsbery26-Sep-08 7:09
Mark Salsbery26-Sep-08 7:09 
GeneralRe: How can I calculate the speed of file transfer using recv function on client? the code a client presented as below Pin
Moak27-Sep-08 4:08
Moak27-Sep-08 4:08 
QuestionBitmaps on Tabs of TabControl Pin
brucewayn23-Sep-08 19:23
brucewayn23-Sep-08 19:23 
AnswerRe: Bitmaps on Tabs of TabControl Pin
laksh220423-Sep-08 22:19
laksh220423-Sep-08 22:19 
AnswerRe: Bitmaps on Tabs of TabControl Pin
Iain Clarke, Warrior Programmer24-Sep-08 5:03
Iain Clarke, Warrior Programmer24-Sep-08 5:03 
GeneralRe: Bitmaps on Tabs of TabControl Pin
brucewayn24-Sep-08 20:03
brucewayn24-Sep-08 20:03 
QuestionCreating radio buttons in list control Pin
VCProgrammer23-Sep-08 19:18
VCProgrammer23-Sep-08 19:18 
AnswerRe: Creating radio buttons in list control Pin
cpvc++23-Sep-08 20:03
cpvc++23-Sep-08 20:03 
Questionto 2192344 Pin
tisos23-Sep-08 19:06
tisos23-Sep-08 19:06 
QuestionRe: to 2192344 Pin
David Crow25-Sep-08 3:33
David Crow25-Sep-08 3:33 
QuestionStartUp Pin
cpvc++23-Sep-08 18:35
cpvc++23-Sep-08 18:35 
AnswerRe: StartUp Pin
Perspx23-Sep-08 20:02
Perspx23-Sep-08 20:02 
Questionprint preview Pin
anilaabc23-Sep-08 18:25
anilaabc23-Sep-08 18:25 
QuestionLast item in the combo box not getting deleted. Pin
Preethi_12323-Sep-08 17:50
Preethi_12323-Sep-08 17:50 
AnswerRe: Last item in the combo box not getting deleted. Pin
Steve Echols23-Sep-08 18:17
Steve Echols23-Sep-08 18:17 

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.