|
안녕하세요..
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"를 이용하는것 처럼 구현하고 싶은데 영~ 감이...-.-;;;
|