Mai 292011
 
//Global our member of class
char width[256];

void load(std::string fileimage)
{
   FILE *file;
   std::string txt="";
   image = IMG_Load(fileimage.c_str());

   if (image!=NULL){
       txt=fileimage.substr(0,fileimage.length()-4);
       txt+=".dat";
       file = fopen(txt.c_str(),"rb");
       fread(&width, 256, 1, file);
       fclose(file);
   }
}

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)