CString to Hex

// CString 문자열의 값을 HEX 값(16진수)로 리턴하는 함수입니다.
// 조금 응용하면 다르게 표현도 가능하겠죠 ㅎㅎ

CString ConvertToHex(CString data)
{
     CString returnvalue;
     for (int x = 0; x < data.GetLength(); x++)
     {
          CString temporary;
          int value = (int)(data[x]);
          returnvalue.format("%02X ", value);
          returnvalue += temporary;
     }
     return returnvalue;
}

크리에이티브 커먼즈 라이센스
Creative Commons License

Posted by dino

2008/03/11 16:22 2008/03/11 16:22
, , ,
Response
No Trackback , No Comment
RSS :
http://corpseplay.com/rss/response/16

Trackback URL : http://corpseplay.com/trackback/16

Leave a comment
[로그인][오픈아이디란?]
« Previous : 1 : ... 23 : 24 : 25 : 26 : 27 : 28 : 29 : 30 : 31 : ... 40 : Next »

블로그 이미지

시체놀이닷컴

- dino

Notices

Site Stats

Total hits:
49289
Today:
93
Yesterday:
108