ObjectCallbackSetFunc Method (MFileClass)
function pointer OnEvent
function pointer OnFrame
Sets the callback function (for C++ and Delphi, for other languages use events). The method blocks the video stream.
Syntax
Public Overridable Sub ObjectCallbackSetFunc( _
   ByVal _lpPFOnEvent As Long, _
   ByVal _lpPFOnFrame As Long, _
   ByVal _llCallbackUserData As Long _
) 
public virtual void ObjectCallbackSetFunc( 
   long _lpPFOnEvent,
   long _lpPFOnFrame,
   long _llCallbackUserData
)
public procedure ObjectCallbackSetFunc( 
    _lpPFOnEvent: Int64;
    _lpPFOnFrame: Int64;
    _llCallbackUserData: Int64
); virtual; 
public: virtual void ObjectCallbackSetFunc( 
   long _lpPFOnEvent,
   long _lpPFOnFrame,
   long _llCallbackUserData
) 

Parameters

_lpPFOnEvent
function pointer OnEvent
_lpPFOnFrame
function pointer OnFrame
_llCallbackUserData
Example
var
cookie: LONG_PTR;
_myOnEvent: LONG_PTR;
_myOnFrame: LONG_PTR;
begin
m_pObject.ObjectCallbackSetFunc(_myOnEvent, _myOnFrame, cookie);
end.
See Also

Reference

MFileClass Class
MFileClass Members