🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Access violation in kernel32.dll using SHFileOperation

#12329
From: Muhammad Momin Rashid
Date: Wed, 10 Dec 2003 11:11
31 lines
2084 bytes
Thanks for the reply,  ZeroMemory seems to have done the trick.

Yes, TSHFileOpStruct is from bcb6.  I copied the code from an example i
found somewhere (don't seem to locate it now), the Ptr in the variable name
came from that example, I just happened to overlook changing the variable
name to a more appropriate one.

Regards,
Muhammad Momin Rashid.

"Hans Galema" <dontusethis@dontusethis.nl> wrote in message
news:3fd6f14e$1@newsgroups.borland.com...
> Muhammad Momin Rashid wrote:
>
> >   TSHFileOpStruct PtrSHFileOpStruct;
>
> TSHFileOpStruct, is that from bcb6 ?
>
> I always use:
>
>    SHFILEOPSTRUCT SHFileOpStruct;
>    ZeroMemory(&SHFileOpStruct, sizeof(SHFileOpStruct));
>
> Think you omitted zeroing the struct first.
>
> Why is there a 'Ptr' in your variable name ?
> As you use it, you don't have a pointer to a struct
> but an instance of a struct. So the naming is confusing.
>
> Hans.
>
Technical Details
Message-ID: <3fd6ffd0@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-out1.nntp.be!propagator2-sterling!news-in.nuthinbutnews.com!newshosting.com!news-xfer2.atl.newshosting.com!216.166.71.118.MISMATCH!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3fd6ebef@newsgroups.borland.com> <3fd6f14e$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,30cf8c6d7d0c236c
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-12-10 03:21:10 PST
From: "Muhammad Momin Rashid" <momin@hotmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3fd6ebef@newsgroups.borland.com> <3fd6f14e$1@newsgroups.borland.com>
Subject: Re: Access violation in kernel32.dll using SHFileOperation
Date: Wed, 10 Dec 2003 16:11:43 +0500
Lines: 33
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 202.163.125.37
Message-ID: <3fd6ffd0@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1071054800 202.163.125.37 (10 Dec 2003 03:13:20 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-out1.nntp.be!propagator2-sterling!news-in.nuthinbutnews.com!newshosting.com!news-xfer2.atl.newshosting.com!216.166.71.118.MISMATCH!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail