Thread overview
Where to find _finddata_t definition?
Jul 30, 2002
Robert M. Münch
Jul 30, 2002
Nic Tiger
Jul 30, 2002
Walter
July 30, 2002
Hi, where is the _finddata_t struct defined? I couldn't find it in any include files I have. It should look like this:

struct _finddata_t {
    unsigned    attrib;
    time_t    time_create; /*-1forFATfilesystems*/
    time_t    time_access; /*-1forFATfilesystems */
    time_t    time_write;
    _fsize_t  size;
    char    name[260];
};

Here is what I get as error message:

            f.f_base.ptr = finfo->name;
                                     ^
filent.c(110) : Error: 'name' is not a member of undefined class
'_finddata_t'
            f.f_base.ptr = finfo->name;
                                      ^
filent.c(110) : Warning 6: value of expression is not used
            f.f_base.len = strlen( finfo->name );
                                             ^
filent.c(111) : Error: 'name' is not a member of undefined class
'_finddata_t'
            f.f_base.len = strlen( finfo->name );
                                                ^
filent.c(111) : Warning 6: value of expression is not used
            (*func)( closure, filename, 1 /* stat()'ed */,
finfo->time_write );
                                                                           ^
filent.c(115) : Error: 'time_write' is not a member of undefined class
'_finddata_t'

Any idea?

--
Robert M. Münch
IT & Management Freelancer
Mobile: +49 (0)177 2452 802
Fax   : +49 (0)721 8408 9112
Web   : http://www.robertmuench.de



July 30, 2002
I think you talk about FINDW struct. It is declared in dos.h.
As far as I know it is abbreviated later as FIND (if __NT__ and _WIN32
defined)

Nic.

"Robert M. Münch" <robert.muench@robertmuench.de> wrote in message news:ai635d$2m99$1@digitaldaemon.com...
> Hi, where is the _finddata_t struct defined? I couldn't find it in any include files I have. It should look like this:
>
> struct _finddata_t {
>     unsigned    attrib;
>     time_t    time_create; /*-1forFATfilesystems*/
>     time_t    time_access; /*-1forFATfilesystems */
>     time_t    time_write;
>     _fsize_t  size;
>     char    name[260];
> };
>
> Here is what I get as error message:
>
>             f.f_base.ptr = finfo->name;
>                                      ^
> filent.c(110) : Error: 'name' is not a member of undefined class
> '_finddata_t'
>             f.f_base.ptr = finfo->name;
>                                       ^
> filent.c(110) : Warning 6: value of expression is not used
>             f.f_base.len = strlen( finfo->name );
>                                              ^
> filent.c(111) : Error: 'name' is not a member of undefined class
> '_finddata_t'
>             f.f_base.len = strlen( finfo->name );
>                                                 ^
> filent.c(111) : Warning 6: value of expression is not used
>             (*func)( closure, filename, 1 /* stat()'ed */,
> finfo->time_write );
>
^
> filent.c(115) : Error: 'time_write' is not a member of undefined class
> '_finddata_t'
>
> Any idea?
>
> --
> Robert M. Münch
> IT & Management Freelancer
> Mobile: +49 (0)177 2452 802
> Fax   : +49 (0)721 8408 9112
> Web   : http://www.robertmuench.de
>
>
>


July 30, 2002
struct FIND in dos.h is what you're looking for.

"Robert M. Münch" <robert.muench@robertmuench.de> wrote in message news:ai635d$2m99$1@digitaldaemon.com...
> Hi, where is the _finddata_t struct defined? I couldn't find it in any include files I have. It should look like this:
>
> struct _finddata_t {
>     unsigned    attrib;
>     time_t    time_create; /*-1forFATfilesystems*/
>     time_t    time_access; /*-1forFATfilesystems */
>     time_t    time_write;
>     _fsize_t  size;
>     char    name[260];
> };
>
> Here is what I get as error message:
>
>             f.f_base.ptr = finfo->name;
>                                      ^
> filent.c(110) : Error: 'name' is not a member of undefined class
> '_finddata_t'
>             f.f_base.ptr = finfo->name;
>                                       ^
> filent.c(110) : Warning 6: value of expression is not used
>             f.f_base.len = strlen( finfo->name );
>                                              ^
> filent.c(111) : Error: 'name' is not a member of undefined class
> '_finddata_t'
>             f.f_base.len = strlen( finfo->name );
>                                                 ^
> filent.c(111) : Warning 6: value of expression is not used
>             (*func)( closure, filename, 1 /* stat()'ed */,
> finfo->time_write );
>
^
> filent.c(115) : Error: 'time_write' is not a member of undefined class
> '_finddata_t'
>
> Any idea?
>
> --
> Robert M. Münch
> IT & Management Freelancer
> Mobile: +49 (0)177 2452 802
> Fax   : +49 (0)721 8408 9112
> Web   : http://www.robertmuench.de
>
>
>