|
현재 XP, NT와 같은 32bit 시스템에서는 int나 long이나 4바이트(32bit) 정수입니다.
sizeof(int)나 sizeof(long)이나 4가 나온다는 것입니다.
long long으로 선언해보시면 sizeof(long long)하시면 8 나옵니다.
double long으로 선언하시면 sizeof(double long)하시면 10 나옵니다.
그냥 IntToHex( ) 사용하면 됩니다.
물론 IntToHex에도 __int64 타입으로 64bit를 지원하고 있는 것으로 압니다.
아래와 같이 2가지 형태가 있는 것이지요... Help눌러 보시기 바랍니다.
extern PACKAGE AnsiString __fastcall IntToHex(int Value, int Digits);
extern PACKAGE AnsiString __fastcall IntToHex(__int64 Value, int Digits);
Description
IntToHex converts a number into a string containing the number's hexadecimal (base 16) representation. Value is the number to convert. Digits indicates the minimum number of hexadecimal digits to return.
조진수 님이 쓰신 글 :
: Int형을 Hex로 변형 시키는건 알겠는데, Long형을 Hex로 바꾸려면 어떻게 해야 하나요??
:
: 예) Int형 Hex : IntToHex
: Long형 Hex : ??
|