static 함수 관련 질문입니다.
글쓴이: Boooooom / 작성시간: 금, 2009/06/19 - 10:23오후
첨부 파일을 분석중인데요..
main.cpp
static int CB_CALLCONV callback(unsigned int inpos, unsigned int outpos)
pecrypt.cpp
void CPECryptor::CryptFile(int(__cdecl *callback1) (unsigned int, unsigned int))
그리고 main.cpp에서
PEfile->CryptFile(callback);
이렇게 호출합니다.
사용 범위에 제한이 있는 static 함수를 pecrypt.cpp에서 사용하기위해 위와 같은 호출을 하는건가요??
그리고 callback함수의 parameter의 의미가 궁금합니다. :-)
File attachments:
첨부 | 파일 크기 |
---|---|
![]() | 4.58 MB |
Forums:
댓글 달기