General information
Category:
COM/DCOM and OLE Automation
Hi Larry,
I've got a COM object that according to the documentation I can reteive
the status of certain functions using the LINKNOTIFY event.
Example: I connect to the COM Object and make a function call to
attach to their server and transfer a file. The COM function internally
fires the LINKNOTIFY event (Which I have no control over). I'm
supposed to be able to somehow retreive the status of the file transfer/connection status etc.. from the LINKNOTIFY event.
First I create a instance of the com object.
Next I use ghe Getinterface to make functions available.
Next I attached to their sever and start communication.
Now I need to see status of communication.
Here is the Documentation for the evnt interface:
_DUPSLINKHTTPEventSink INTERFACE
LINKHTTP (The Lib) generate events using this interface. These
events are passed to the client via the _DUPSlinkHTTPEventSink
interface.
LinkHTTP fires this event to notify the client application of
the status of transaction, e.g. connectin, sending and/or receiving
data. The client application can display this notification text to
give feedback of the transaction to the user.
Event is:
linkNotify
Paramter
strNotification - The string containing notification informatino
nCode - The current status
IByte - the number of bytes sent or received
ITotal - The total number of byes to be sent or received
The notification text and corresponding codes are
nCode strNotification Text
0 = Wating
1 = Initializing
2 = Conecting
3 = Connected
etc.....
Got any ideas?
Thanks,
Gary
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only