I'm using a dll and calling method, everything is fine except when I'm calling method that are returning result through an "Event Interface"
Here's my form code and The interface definition(attached file...)
Can you tell me how to declare and use a callback method. For example the :OnGetUnitInfoEvent method.
Thanks.
Public Sub myc_OnGetUnitInfoEvent(ByVal lSessionID As Long, ByVal eReason As eStatusReason, ByVal pIUnitInfo As INTLXUnitInfo)
MsgBox lSessionID
End Sub
Private Sub Timer1_Timer()
NtlxImage1.Display
End Sub
And here's part of the IDL for the dll, only showing the OnGetUnitEvent....
Code:
[id(0x00000005), helpstring("Completion event for a GetUnitInfo method call. If the reason is anything except complete the info interface will be NULL.")]
HRESULT OnGetUnitInfoEvent(
[in] long lSessionID,
[in] eStatusReason eReason,
[in] INTLXUnitInfo* pIUnitInfo);
Re: Callback method, WithEvents... I don't know ??
Public Sub myc_OnGetUnitInfoEvent(ByVal lSessionID As Long, ByVal eReason As eStatusReason, ByVal pIUnitInfo As INTLXUnitInfo)
MsgBox lSessionID
Text1.Text = pIUnitInfo.XmlString
End Sub
NTLXRemote Act As Controll and this is the Event from GetSomething metod.
Write to my mail, please