www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++.windows.32-bits - Where to find _finddata_t definition?

↑ ↓ ← "Robert M. Münch" <robert.muench robertmuench.de> writes:
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
Jul 30 2002
→ "Nic Tiger" <nictiger pt.comcor.ru> writes:
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

Jul 30 2002
→ "Walter" <walter digitalmars.com> writes:
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

Jul 30 2002