Information générale
Catégorie:
COM/DCOM et 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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement