|
TMemoryStream *a = new TMemoryStream;
int b;
a->Write(&b, sizeof(b));
printf("%I64d, %I64d\n", a->Position, a->Size);
용맨소녀 님이 쓰신 글 :
: TMemoryStream *a = new TMemoryStream;
:
: a->Write(Buffer, sizeof(Buffer));
:
: printf("%d, %d\n", a->Position, a->Size);
:
: Position은 제대로 출력되는데, Size는 0으로 출력됩니다. 둘다 __int64 변수인데요..
:
: 그래서 printf("%d, %s\n", a->Position, IntToStr(a->Size).t_str());
:
: 이렇게 했는데, null로 나옵니다..
:
: 지금까지 Size로 여러가지를 체크했는데... 헛짓한건가요..;;
|