Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Notification virtual interfaces
Message
From
04/12/2002 23:27:56
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Notification virtual interfaces
Miscellaneous
Thread ID:
00729760
Message ID:
00729760
Views:
99
Quite frequently control vendors provide abstract/virtual interfaces which need to be implemented.

"Ability to get data using IUnboundHandler notification interface"

"I might recommend that you use VirtualInterface mode"

When browsing VB examples we may see in a form code something like this :

'General Declarations
Implements IUnboundHandler


' Sets the UnboudnMode handler
'Grid1 our ActiveX on a form
With Grid1

' Sets the UnboudnMode handler
Set .UnboundHandler = Me

' Holds the .Items property to a variable to avoid calling QueryInterface many times in ReadItem handler
Set its = .Items

Endwith

Private Property Get IUnboundHandler_ItemsCount() As Long
' rs ADO recordset
IUnboundHandler_ItemsCount = rs.RecordCount
End Property

Private Sub IUnboundHandler_ReadItem(ByVal Index As Long, ByVal Source As Object, ByVal ItemHandle As Long)
'implementation code

Did anyone succed in making those interfaces work in VFP ?

Thank you
Michael
Next
Reply
Map
View

Click here to load this message in the networking platform