🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Access violation in kernel32.dll using SHFileOperation

#12328
From: Hans Galema
Date: Wed, 10 Dec 2003 10:15
18 lines
1442 bytes
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: <3fd6f14e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3fd6ebef@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 02:39:14 PST
Date: Wed, 10 Dec 2003 11:15:21 +0100
From: Hans Galema <dontusethis@dontusethis.nl>
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.3.1) Gecko/20030425
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Access violation in kernel32.dll using SHFileOperation
References: <3fd6ebef@newsgroups.borland.com>
In-Reply-To: <3fd6ebef@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 129.125.108.11
Message-ID: <3fd6f14e$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1071051086 129.125.108.11 (10 Dec 2003 02:11:26 -0700)
Lines: 19
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail