C++Builder Programming Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
C++빌더 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
컴포넌트/라이브러리
메신저 프로젝트
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

C++빌더 Q&A
C++Builder Programming Q&A
[10414] Re:GetFileSize() 사용법점 ㅡ_ㅡ
강재호 [greenuri] 2602 읽음    2001-08-29 19:06
수야 님이 쓰신 글 :
: 이노무 API 함수는 어케 쓰는지 도무지 알수가 엄네여 ㅡ_ㅡ;;
:
: 방법점 알려주세여 ^^;;

저도 잘 모르겠고요 그냥 헬프 복사해서 드립니다.

그럼 이만~

허접 초보 만해~

The GetFileSize function obtains the uncompressed size of a file. Use the GetCompressedFileSize function to obtain the compressed size of a file.
Note that if the return value is 0xFFFFFFFF and lpFileSizeHigh is non-NULL, an application must call GetLastError to determine whether the function has succeeded or failed. The following sample code illustrates this point:

// 
// Case One: calling the function with
//           lpFileSizeHigh == NULL

// Try to obtain hFile's size
dwSize = GetFileSize (hFile, NULL) ;

// If we failed ...
if (dwSize == 0xFFFFFFFF) {

    // Obtain the error code.
    dwError = GetLastError() ;

    // Deal with that failure.
    .
    .
    .

    } // End of error handler


//
// Case Two: calling the function with
//           lpFileSizeHigh != NULL

// Try to obtain hFile's huge size.

dwSizeLow = GetFileSize (hFile, & dwSizeHigh) ;

// If we failed ...
if (dwSizeLow == 0xFFFFFFFF
    &&
    (dwError = GetLastError()) != NO_ERROR ){

    // Deal with that failure.
    .
    .
    .

    } // End of error handler.


See Also

GetCompressedFileSize, GetFileType

+ -

관련 글 리스트
10408 GetFileSize() 사용법점 ㅡ_ㅡ 수야 1190 2001/08/29
10414     Re:GetFileSize() 사용법점 ㅡ_ㅡ 강재호 2602 2001/08/29
10416         Re:Re:헬프는 소용없는디.. ㅡ_ㅡ;; 수야 1245 2001/08/29
10421             Re:Re:Re:헬프는 소용없는디.. ㅡ_ㅡ;; 개박살.U&I 1457 2001/08/29
10435                 Re:Re:Re:Re:헬프는 소용없는디.. ㅡ_ㅡ;; 수야 1294 2001/08/29
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.