🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #9613

Re: CopyFileEx - CopyProgressRoutine - devision by zero

#9613
From: Bob Gonder
Date: Wed, 23 Jun 2004 20:16
32 lines
2116 bytes
Tommy wrote:

>In the my header i put following code:
>
>FT264 StartTime;
>FT264 now;
>FT264 remaining;
>FT264 elapsed;

You don't put variables in headers. Ever.

>In my main code, i first give StartTime a value when i start my prozess:
>
>GetSystemTimeAsFileTime(&StartTime.ft);
>
>When I compile I get errors that FormatTime is undefined. i could not find

Well, geez, yeah, that you have to write for yourself. (Convert
SYSTEMTIME to a string in the format you desire.)

>anywhere. furthermore szCM_U_TIMECOPIED and szCM_U_TIMEREMAINING are also
>undefined.

Quite likely.  They are where *I* put *My* answers.  *You* need to put
*your* answers where *you* want them!

>Is the last value save in SystemTime the time which is still need until the
>prozess is finished or do i need any more calculations?

That's what
   FormatTime(&SystemTime, szCM_U_TIMEREMAINING);
impiles, yes.
Technical Details
Message-ID: <qfojd0dhd57q45be09tt1u8klea9fglliq@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
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>

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: Wed, 23 Jun 2004 13:16:42 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <qfojd0dhd57q45be09tt1u8klea9fglliq@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>
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 1088021831 65.173.66.198 (23 Jun 2004 13:17:11 -0700)
Lines: 34
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail