[delphizip] Re: CBuilder4 & version 1.78.1.2

  • From: "Roger Aelbrecht" <Aelbrecr@xxxxxxxxxx>
  • To: <delphizip@xxxxxxxxxxxxx>
  • Date: Sat, 13 Nov 2004 16:08:06 +0100

Don Locke wrote:
> Hi Roger,
>   That fixed that problem.  But I ran into other problems like it
> couldn't find function ExtractIcon.  I fixed it by using my
> precompiled headers.  But I ran into another problem in ZipUtils.cpp.
> I fixed it 
> with this code:
> int EraseFile(const String Fname, DeleteOpts How)
> {
> #if __BORLANDC__ == 1344        // BCB4=0x0540(1344)
>     SHFILEOPSTRUCT SHF;
> #elif __BORLANDC__ > 0x0550
>     TSHFileOpStruct  SHF;
> #endif
> 
> I remember having this problem with previous versions also.  Guess I
> didn't report them.  SAT.  Will sure be glad when I can upgrade the
> application still using CBuilder 4!!
> Don
> 

Hi Don,

I decided to use only the statement

 SHFILEOPSTRUCT SHF;

for all versions.
The TSHFileOpStruct  is only a typedef to the WinAPI structures.
I probably simply used the Delphi statement.

-- 
Roger Aelbrecht
http://home.tiscali.be/driehoeksw

-----------
To unsubscribe from this list, send an empty e-mail 
message to:
  delphizip-request@xxxxxxxxxxxxx 
and put the word unsubscribe in the subject.

Other related posts: