Article View: borland.public.cppbuilder.nativeapi
Article #17107Re: WIN32_FIND_DATA
From: Jonathan Arnold
Date: Wed, 09 Apr 2003 13:03
Date: Wed, 09 Apr 2003 13:03
16 lines
1737 bytes
1737 bytes
>> WIN32_FIND_DATA fd = {0};
>> HANDLE hFind = FindFirstFile("some mask", &fd);
> What does the '= {0}' do when declaring the WIN32_FIND_DATA ? Is it filling
> the structure with 0's ?
Yes, that's exactly what it does. And there is a nice shortcut
for filling in the size of the structure, and zeroing all the
rest. For instance:
STARTUPINFO si = {sizeof(STARTUPINFO)};
--
Jonathan Arnold C/C++/CBuilder Keen Advice:
http://www.keen.com/categories/categorylist_expand.asp?sid=5156620
Comprehensive C++Builder link site:
http://www.buddydog.org/C++Builder/c++builder.html
Technical Details
Message-ID:
<3e941a0f$2@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3e92e1ac@newsgroups.borland.com> <3e92f56f$1@newsgroups.borland.com> <3e93d47e$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,fd6b646fea84b2a5 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-04-09 06:07:09 PST Date: Wed, 09 Apr 2003 09:03:13 -0400 From: Jonathan Arnold <jdarnold@buddydog.org> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en, ja MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: WIN32_FIND_DATA References: <3e92e1ac@newsgroups.borland.com> <3e92f56f$1@newsgroups.borland.com> <3e93d47e$1@newsgroups.borland.com> In-Reply-To: <3e93d47e$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 66.92.76.225 Message-ID: <3e941a0f$2@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1049893391 66.92.76.225 (9 Apr 2003 06:03:11 -0800) Lines: 17 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail