I am pretty inexperianced with C++ Builder and can't find an answer to my problem elsewhere. I have a bitmap that I am overlaying text. I take the text from a file, manipulate it, put it on the bitmap and print it all. Somewhere, I am losing the spaces in the text. I suspect it is one fucntion call doing it.
I am using the following functions:
while (!feof(f)){ //Get all the data in from the file
fscanf(f, "%s", msg);
StrCat(temp, msg);
}//wend
tempmsg= StrScan(temp,';') ; //find the 1st delimiter
StrLCopy(msg, temp, StrLen(temp)-StrLen(tempmsg)); //Get data before 1st delimiter
StrLCopy(temp, tempmsg+1, 1000);// cut off 1st chunk of data, leaving rest to be delt with
tempSTR=StringReplace(tempSTR,";","/n",TReplaceFlags() << rfReplaceAll) ;
Image1->Canvas->TextOutA(150,380,tempSTR) ;
If I didn't have a dead line, I'd just fumble through. I'll keep looking anyway. I'd appreciate any input.
Thanks!
I am using the following functions:
while (!feof(f)){ //Get all the data in from the file
fscanf(f, "%s", msg);
StrCat(temp, msg);
}//wend
tempmsg= StrScan(temp,';') ; //find the 1st delimiter
StrLCopy(msg, temp, StrLen(temp)-StrLen(tempmsg)); //Get data before 1st delimiter
StrLCopy(temp, tempmsg+1, 1000);// cut off 1st chunk of data, leaving rest to be delt with
tempSTR=StringReplace(tempSTR,";","/n",TReplaceFlags() << rfReplaceAll) ;
Image1->Canvas->TextOutA(150,380,tempSTR) ;
If I didn't have a dead line, I'd just fumble through. I'll keep looking anyway. I'd appreciate any input.
Thanks!