怎麼轉換成bytecode呢?? |
尚未結案
|
xenz
一般會員 發表:8 回覆:7 積分:3 註冊:2004-02-24 發送簡訊給我 |
請問C 可否轉換AnsiString成bytecode呢?? 例如 str = "This is " str;
txt.text = str;
str = this._url;
str = str.substr(8);
str = (str.substr(0, 1) ":") str.substr(2); 轉換
__bytecode__("882B0008007374720074686973005F75726C00737562737472003A00546869732069732000747874007465787400960400080008011C96020008024E1D960E0008000708000000070100000008001C9602000803521D96170008000701000000060000000000000000070200000008001C960200080352960200080447960C000702000000070100000008001C960200080352471D9606000800080508001C471D96020008061C960400080708001C4F00");
|
RaynorPao
版主 發表:139 回覆:3622 積分:7025 註冊:2002-08-12 發送簡訊給我 |
引言: 請問C++可否轉換AnsiString成bytecode呢?? 例如 str = "This is " + str; txt.text = str; str = this._url; str = str.substr(8); str = (str.substr(0, 1) + ":") + str.substr(2); 轉換 __bytecode__("882B0008007374720074686973005F75726C00737562737472003A00546869732069732000747874007465787400960400080008011C96020008024E1D960E0008000708000000070100000008001C9602000803521D96170008000701000000060000000000000000070200000008001C960200080352960200080447960C000702000000070100000008001C960200080352471D9606000800080508001C471D96020008061C960400080708001C4F00");xenz 你好: 你說的意思,是不是類似像這個樣子? < class="code"> AnsiString szSrc="This is a book."; AnsiString szDst=""; for(int i=0; i
------
-- 若您已經得到滿意的答覆,請適時結案!! -- -- 欲知前世因,今生受者是;欲知來世果,今生做者是 -- -- 一切有為法,如夢幻泡影,如露亦如電,應作如是觀 -- |
xenz
一般會員 發表:8 回覆:7 積分:3 註冊:2004-02-24 發送簡訊給我 |
[quote]
xenz 你好:
你說的意思,是不是類似像這個樣子?
< class="code">
AnsiString szSrc="This is a book.";
AnsiString szDst="";
for(int i=0; i
|
xenz
一般會員 發表:8 回覆:7 積分:3 註冊:2004-02-24 發送簡訊給我 |
引言: 請問C 可否轉換AnsiString成bytecode呢?? 例如 str = "This is " str; txt.text = str; str = this._url; str = str.substr(8); str = (str.substr(0, 1) ":") str.substr(2); 轉換 __bytecode__("882B0008007374720074686973005F75726C00737562737472003A00546869732069732000747874007465787400960400080008011C96020008024E1D960E0008000708000000070100000008001C9602000803521D96170008000701000000060000000000000000070200000008001C960200080352960200080447960C000702000000070100000008001C960200080352471D9606000800080508001C471D96020008061C960400080708001C4F00");原文是這樣寫的 __bytecode__("961111");// push data size 1111 __bytecode__("9902002222");//jump to next 2222 bytes write down the real code size, and the bytecodes Then replace by: __bytecode__("961111"); __bytecode__("882B0008007374720074686973005F75726C00737562737472003A00546869732069732000747874007465787400960400080008011C96020008024E1D960E0008000708000000070100000008001C9602000803521D96170008000701000000060000000000000000070200000008001C960200080352960200080447960C000702000000070100000008001C960200080352471D9606000800080508001C471D96020008061C960400080708001C4F00"); __bytecode__("99020005009902002222"); //size 00B1 change the first line 0x1111 to (code size 7); change the last line 0x2222 to (-(code size 11); // to accomodate the 0x17 codes created by __bytecode__ ----------------- The result: __bytecode__("96B800"); __bytecode__("882B0008007374720074686973005F75726C00737562737472003A00546869732069732000747874007465787400960400080008011C96020008024E1D960E0008000708000000070100000008001C9602000803521D96170008000701000000060000000000000000070200000008001C960200080352960200080447960C000702000000070100000008001C960200080352471D9606000800080508001C471D96020008061C960400080708001C4F00"); __bytecode__("990200050099020044FF"); //size 00B1 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |