Article View: borland.public.cppbuilder.nativeapi
Article #9615Re: CopyFileEx - CopyProgressRoutine - devision by zero
From: Tommy
Date: Wed, 23 Jun 2004 21:12
Date: Wed, 23 Jun 2004 21:12
51 lines
2586 bytes
2586 bytes
Hi bob, first thanks for your answer. i think i was a bit stupid *gg* .you said i should not but the variables in the header of my projekt. but how should i access to these variables in my Copy Routine? As I found no possibility I put this into the header. Was it right to put the declaration of the FT264 into the header? tommy "Bob Gonder" <notbg@notmindspring.invalid> schrieb im Newsbeitrag news:qfojd0dhd57q45be09tt1u8klea9fglliq@4ax.com... > 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:
<40d9f233@newsgroups.borland.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-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>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,9a3709a4832c0e51 X-Google-Attributes: gid10cc67,public From: "Tommy" <tommyw@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi 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> Subject: Re: CopyFileEx - CopyProgressRoutine - devision by zero Date: Wed, 23 Jun 2004 23:12:13 +0200 Lines: 53 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 84.129.27.129 Message-ID: <40d9f233@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1088025139 84.129.27.129 (23 Jun 2004 14:12:19 -0700) 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