im trying to write c code for imagedisplay,and at the basic stages i get struct of problem
' error: unknown type name ‘AnsiString’
'
plsssss help me......
my code is here:
Expand|Select|Wrap|Line Numbers
- 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);