Click here to Skip to main content
16,013,440 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CScrollView active? Pin
pba_27-Dec-02 8:11
pba_27-Dec-02 8:11 
GeneralRe: CScrollView active? Pin
Dov Sherman27-Dec-02 11:22
Dov Sherman27-Dec-02 11:22 
GeneralRe: CScrollView active? Pin
pba_27-Dec-02 12:17
pba_27-Dec-02 12:17 
GeneralWin32 screensaver in VC6 Pin
axa26-Dec-02 18:36
axa26-Dec-02 18:36 
GeneralRe: Win32 screensaver in VC6 Pin
Michael Dunn26-Dec-02 18:44
sitebuilderMichael Dunn26-Dec-02 18:44 
GeneralRe: Win32 screensaver in VC6 Pin
axa28-Dec-02 17:08
axa28-Dec-02 17:08 
GeneralRecordsets in C++ .NET Pin
Mike Danberg26-Dec-02 16:15
Mike Danberg26-Dec-02 16:15 
GeneralTransfer rate....... Pin
RobJones26-Dec-02 15:57
RobJones26-Dec-02 15:57 
Hello everyone,
This is kind of a LAZY question but I will ask it anyway..

Does anyone have a good way of calculating file transfer rates? I have an application where I transfer files.. On my status bar I have a pane for the progress bar, transfer rate and the name of the file being transferred..

In the transfer rate I have

int nSpeed = 0;

CString strRate;
strRate.Format("%dKb of %dKb - %dKbps",wParam/1000, m_dwFileLength/1000, nSpeed);

This works fine minus the speed of course

I would like to show the speed.. (nSpeed)

What would be my best bet for calculating the speed?

Thanks,
Rob



GeneralNever mind Pin
RobJones26-Dec-02 17:23
RobJones26-Dec-02 17:23 
GeneralSTL problem Pin
Dor26-Dec-02 15:36
Dor26-Dec-02 15:36 
GeneralRe: STL problem Pin
Taka Muraoka26-Dec-02 15:52
Taka Muraoka26-Dec-02 15:52 
GeneralRe: STL problem Pin
RobJones26-Dec-02 16:00
RobJones26-Dec-02 16:00 
GeneralRe: STL problem Pin
Dor26-Dec-02 16:20
Dor26-Dec-02 16:20 
GeneralRe: STL problem Pin
Taka Muraoka26-Dec-02 16:26
Taka Muraoka26-Dec-02 16:26 
GeneralRe: STL problem Pin
Dor26-Dec-02 16:51
Dor26-Dec-02 16:51 
GeneralRe: STL problem Pin
Taka Muraoka26-Dec-02 16:56
Taka Muraoka26-Dec-02 16:56 
GeneralRe: STL problem Pin
Dor26-Dec-02 17:08
Dor26-Dec-02 17:08 
GeneralAbout image of drag&drop. Pin
tianyang@vip.163.com26-Dec-02 15:27
susstianyang@vip.163.com26-Dec-02 15:27 
GeneralRe: About image of drag&drop. Pin
KaЯl26-Dec-02 23:41
KaЯl26-Dec-02 23:41 
QuestionHow to dynamically change media type with YV12 format frames in DirectShow? Pin
Bert_Chen26-Dec-02 15:02
Bert_Chen26-Dec-02 15:02 
Generalproblem using tab control Pin
Member 11729326-Dec-02 13:08
Member 11729326-Dec-02 13:08 
GeneralRe: problem using tab control Pin
Dor26-Dec-02 15:32
Dor26-Dec-02 15:32 
GeneralRe: problem using tab control Pin
Member 11729327-Dec-02 5:21
Member 11729327-Dec-02 5:21 
GeneralRe: problem using tab control Pin
Dor27-Dec-02 11:47
Dor27-Dec-02 11:47 
GeneralRe: problem using tab control Pin
Mangesh Sardesai26-Dec-02 21:56
Mangesh Sardesai26-Dec-02 21:56 

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.