hiiiiiii ,
im trying to write c code for imagedisplay,an d at the basic stages i get struct of problem
' error: unknown type name ‘AnsiStrin g’
'
plsssss help me......
my code is here:
im trying to write c code for imagedisplay,an d at the basic stages i get struct of problem
' error: unknown type name ‘AnsiStrin g’
'
plsssss help me......
my code is here:
Code:
int handle;
struct stat statbuf;
/* get information about the file */
stat("C:\\image.jpg", &statbuf);
/* display the information returned */
//printf(statbuf.st_size);
unsigned char *mem;
if ((mem =(char *)malloc(statbuf.st_size)) == NULL)
printf("problem alloc");
if ((handle = open("image.jpg", "rb")) == -1)
printf("problem open file");
read(handle, mem, statbuf.st_size);
printf("hiii");
AnsiString ss;
ss = *mem;
Memo1->Text=ss;
free(mem);
Comment