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
[54529] [질문] 클래스 멤버함수를 개체별 콜백함수로 등록 시키는 방법?
진짜로끝나는 [jinwar] 2054 읽음    2008-09-09 21:44
안녕하세요..

dll 형태로 제공되어지는 라이브러리가 있는데요. 내부 함수는 모두 "C"형태 입니다.

LONG AdsSyncAddDeviceNotificationReq(
  PAmsAddr                 pAddr,
  ULONG                    nIndexGroup,
  ULONG                    nIndexOffset,
  PAdsNotificationAttrib   pNoteAttrib,
  PAdsNotificationFunc     pNoteFunc, // <--- Callback 함수 등록
  ULONG                    hUser,
  PULONG                   pNotification
);
Parameter
pAddr
[in] Structure with NetId and port number of the ADS server.
nIndexGroup
[in] IndexGroup.
nIndexOffset
[in] IndexOffset.
pNoteAttrib
[in] Pointer to the structure that contains further information.
pNoteFunc
[in] Name of the callback function.
hUser
[in] 32-bit value that is passed to the callback function.
pNotification
[out] Address of the variable that will receive the handle of the notification.
//---------------------------------------------------
위 함수를 포함하는 여러 함수들을 묶어서 class로 만들어서 사용하고 싶은데요.
가능하면 static function()을 사용하지 않고(또는 숨겨서) 멤버함수를 Callback함수로 등록가능하게
만들려면 어떻게 하면 되나요?

"TNotifyEvent"를 이용하는것 처럼 구현하고 싶은데 영~ 감이...-.-;;;

+ -

관련 글 리스트
54529 [질문] 클래스 멤버함수를 개체별 콜백함수로 등록 시키는 방법? 진짜로끝나는 2054 2008/09/09
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.