String To Byte => Borland C++ Algoritma

Posts 1–4 of 4 · Page 1 of 1
String To Byte => Borland C++ Algoritma
Code:
void __fastcall TForm1::Button1Click(TObject *Sender)
{
int len ;
BYTE komut[1024];
len = Edit1->Text.Length()/2;
int yer =1;
for (int i = 0; i < len; i++) {
int bayt = StrToInt("0x"+Edit1->Text.SubString(yer,2));
komut[(yer-1)/2]=bayt;
yer+=2;
}
}
sample code;

before ={0x88,0x44}

after = (8844);//form in edit1->text
Last "warn", use the snippets. This is not thread worthy.
Quote Originally Posted by 'Bruno View Post
Last "warn", use the snippets. This is not thread worthy.
ow sorry i dont know i new login,hope = code other topic ?
OP!
waht r u doin???
OP!!!
stahp! ;(
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us