a=(char*) malloc(sizeof(15));
b= bmfh.bfType;
sprintf(a, "bfType: %d", b);
TextOut (hdc, 0, 0,a , strlen(a)) ;
delete[] a;
a=(char*) malloc(sizeof(15));
b=bmih.biBitCount;
sprintf(a, "bitCount: %d", b);
TextOut (hdc, 0, 20,a , strlen(a)) ;
is it necessary to leave the a undeleted when i gave it another value or i should delete it first and create a new allocation?
thank you