Thread overview | |||||
---|---|---|---|---|---|
|
July 30, 2002 Where to find _finddata_t definition? | ||||
---|---|---|---|---|
| ||||
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 Re: Where to find _finddata_t definition? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robert M. Münch | 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 Re: Where to find _finddata_t definition? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robert M. Münch | 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 > > > |
Copyright © 1999-2021 by the D Language Foundation