Thread View: borland.public.cppbuilder.nativeapi
5 messages
5 total messages
Started by Phil V
Tue, 08 Apr 2003 14:50
WIN32_FIND_DATA
Author: Phil V
Date: Tue, 08 Apr 2003 14:50
Date: Tue, 08 Apr 2003 14:50
12 lines
1061 bytes
1061 bytes
How do I create the WIN32_FIND_DATA structure to pass to FindFirstFile? And how do i pass it? thanks, PHil -- "If it is called software, why is it so hard?" - Unknown
Re: WIN32_FIND_DATA
Author: Vladimir Afanasyev
Date: Tue, 08 Apr 2003 16:05
Date: Tue, 08 Apr 2003 16:05
9 lines
1251 bytes
1251 bytes
"Phil V" <pvalentine_REMOVE_THIS_@_REMOVE_THIS_continental-microwave.co.uk> wrote: >How do I create the WIN32_FIND_DATA structure to pass to FindFirstFile? > You can see sample: http://www.codeproject.com/useritems/Inside_a_maze_of_DLLs.asp Vladimir.
Re: WIN32_FIND_DATA
Author: Remy Lebeau (TeamB)
Date: Tue, 08 Apr 2003 16:14
Date: Tue, 08 Apr 2003 16:14
14 lines
1312 bytes
1312 bytes
"Phil V" <pvalentine_REMOVE_THIS_@_REMOVE_THIS_continental-microwave.co.uk>
wrote in message news:3e92e1ac@newsgroups.borland.com...
> How do I create the WIN32_FIND_DATA structure
> to pass to FindFirstFile?
>
> And how do i pass it?
WIN32_FIND_DATA fd = {0};
HANDLE hFind = FindFirstFile("some mask", &fd);
...
Gambit
Re: WIN32_FIND_DATA
Author: Phil V
Date: Wed, 09 Apr 2003 08:02
Date: Wed, 09 Apr 2003 08:02
26 lines
1568 bytes
1568 bytes
Remy,
What does the '= {0}' do when declaring the WIN32_FIND_DATA ? Is it filling
the structure with 0's ?
Phil
"Remy Lebeau (TeamB)" <gambit47@yahoo.com> wrote in message
news:3e92f56f$1@newsgroups.borland.com...
>
> "Phil V"
<pvalentine_REMOVE_THIS_@_REMOVE_THIS_continental-microwave.co.uk>
> wrote in message news:3e92e1ac@newsgroups.borland.com...
> > How do I create the WIN32_FIND_DATA structure
> > to pass to FindFirstFile?
> >
> > And how do i pass it?
>
> WIN32_FIND_DATA fd = {0};
> HANDLE hFind = FindFirstFile("some mask", &fd);
> ...
>
>
> Gambit
>
>
Re: WIN32_FIND_DATA
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads