Article View: borland.public.cppbuilder.nativeapi
Article #9633Re: CopyFileEx - CopyProgressRoutine - devision by zero
From: Bob Gonder
Date: Fri, 25 Jun 2004 03:44
Date: Fri, 25 Jun 2004 03:44
18 lines
2140 bytes
2140 bytes
Tommy wrote: >now it works fine. the time which is still need to copy everything looks >great. only the time which the process already runs looks not great. it >seams as the start of this time is 2 hours. but i cant any error here at my >code. You don't show how you now set StartTime. It's probably wrong. > elapsed.i64 = now.i64 - StartTime.i64; > FileTimeToSystemTime(&elapsed.ft, &SystemTime); > pForm->LBisherdauer->Caption = pForm->FormatTime(&SystemTime); If you are setting it correctly, then set a breakpoint after you set StartTime, and another on the first line above. Check that the value subtracted is the same as the value set. If not, then you have a bug elsewhere that is changing the value.
Technical Details
Message-ID:
<ik7nd0tm3ks2oj5g6r0okaarr2g94kk97u@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40ce2e93@newsgroups.borland.com> <crtsc0pp05ki34cqsvkgsj721eei6g7obh@4ax.com> <40cef067$1@newsgroups.borland.com> <8hauc01e3dsrlu787m5s8jo10rpu0k3duq@4ax.com> <40d3589b@newsgroups.borland.com> <2bj7d0dc8b89se5ibtdm7nntbvsrga2lrt@4ax.com> <40d8b34c$1@newsgroups.borland.com> <qfojd0dhd57q45be09tt1u8klea9fglliq@4ax.com> <40d9f233@newsgroups.borland.com> <uavjd0lvdhuhdvosclehlarvvfagceecmn@4ax.com> <40db5933@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,9a3709a4832c0e51 X-Google-Attributes: gid10cc67,public From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: CopyFileEx - CopyProgressRoutine - devision by zero Date: Thu, 24 Jun 2004 20:44:39 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <ik7nd0tm3ks2oj5g6r0okaarr2g94kk97u@4ax.com> References: <40ce2e93@newsgroups.borland.com> <crtsc0pp05ki34cqsvkgsj721eei6g7obh@4ax.com> <40cef067$1@newsgroups.borland.com> <8hauc01e3dsrlu787m5s8jo10rpu0k3duq@4ax.com> <40d3589b@newsgroups.borland.com> <2bj7d0dc8b89se5ibtdm7nntbvsrga2lrt@4ax.com> <40d8b34c$1@newsgroups.borland.com> <qfojd0dhd57q45be09tt1u8klea9fglliq@4ax.com> <40d9f233@newsgroups.borland.com> <uavjd0lvdhuhdvosclehlarvvfagceecmn@4ax.com> <40db5933@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 65.173.66.198 X-Trace: newsgroups.borland.com 1088135108 65.173.66.198 (24 Jun 2004 20:45:08 -0700) Lines: 20 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail