Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Notification virtual interfaces
Message
 
To
04/12/2002 23:27:56
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00729760
Message ID:
00729828
Views:
10
Hi Michael,

As far as I can understand, you are talking about callback interfaces. Yes, they can be implemented in VFP7. Take a look on great article "Microsoft Visual FoxPro and Advanced COM":
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnfoxgen7/html/vfpandcom.asp

Alexander

>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
Previous
Reply
Map
View

Click here to load this message in the networking platform