04-22-2004, 04:55 PM
im using dev c++ and when i compile my code it gives me this message
31 main.cpp
`File' undeclared (first use this function)
31 main.cpp
(Each undeclared identifier is reported only once
31 main.cpp
for each function it appears in.)
38 main.cpp
implicit declaration of function `int fopen(...)'
and here is my code for it
File *File=NULL; // File Handle
if (!Filename) // Make Sure A Filename Was Given
{
return NULL; // If Not Return NULL
}
File=fopen(Filename,"r"); // Check To See If The File Exists
if (File) // Does The File Exist?
{
fclose(File); // Close The Handle
return auxDIBImageLoad(Filename); // Load The Bitmap And Return A Pointer
}
any help would be nice, thxs in advance
31 main.cpp
`File' undeclared (first use this function)
31 main.cpp
(Each undeclared identifier is reported only once
31 main.cpp
for each function it appears in.)
38 main.cpp
implicit declaration of function `int fopen(...)'
and here is my code for it
File *File=NULL; // File Handle
if (!Filename) // Make Sure A Filename Was Given
{
return NULL; // If Not Return NULL
}
File=fopen(Filename,"r"); // Check To See If The File Exists
if (File) // Does The File Exist?
{
fclose(File); // Close The Handle
return auxDIBImageLoad(Filename); // Load The Bitmap And Return A Pointer
}
any help would be nice, thxs in advance