|
지난번에 올린 내용인데요....아직 해결이 나지 않아서 다시 올립니다.
이런 경우를 아시는 분 혹시 안계십니까....?
간곡히 부탁드립니다.
Memo1 에 0x01, 0x02, 0x03 ...... 을 직접 타이핑하면 입력이 됩니다.
그런데 메모장등에서 복사 해서 붙여넣기를 하고 값을 확인하면
입력되어 있지 않습니다.
이런 경우를 아시는분 좀 가르쳐주세요..
//------- 관련 소스 -------------------------------------------------------
char * iPos;
int result;
BYTE image[100];
String strTmp;
strTmp = Memo1->Text.c_str(); //0x01, 0x02, 0x03, 0x04.....입력
while(exist_0x)
{
iPos=NULL;
iPos = strstr(strTmp.c_str(), "0x");
if(iPos)
{
result = iPos - strTmp.c_str() + 1;
image[i] = StrToInt(strTmp.SubString(result, 4));
strTmp = iPos+6;
i=i+1;
}
else exist_0x = FALSE;
}
memcpy((char *)Qdata[count].IMG, image, size);
//---------------------------------------------------------------------------
부탁 드립니다.
|