'CString to Hex'에 해당되는 글 1건

  1. 2008/03/11 CString to Hex

CString to Hex

View Comments

// 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
2008/03/11 16:22 2008/03/11 16:22

댓글0 Comments (+add yours?)

트랙백0 Tracbacks (+view to the desc.)

Newer Entries Older Entries