Originally posted by: Rob Staveley
I've been racking my brains trying to get a WSH client
Many thanks for the excellent article.
working for the simple object, and I've finally got it
working. Here is is for anybody else....
TestSimpleSink.wsf:
--------8<--------
<job>
<script language="VBScript">
i = 0
WScript.ConnectObject Simple, "Simple_"
do while i < 10
WScript.Echo "Calling..."
Simple.m1
WScript.Sleep 500
i = i+1
loop
sub Simple_e1()
WScript.Echo "Event heard in VBScript"
end sub
</script>
<object id="Simple" classid="CLSID:64C7097E-5FB7-11D4-A44B-00104BDC292F" />
</job>
--------8<--------
Originally posted by: atladvise
thank god i found this sample, now i can go home early :)
ReplyOriginally posted by: Serhiy Tkachenko
In Windows NT 4.0 SP6 environment I tried to
compile this project as standalone .exe.
It works on the same PC but when I try to run the
client on one PC and server on another ( all flags
in DCOMCNFG are checked properly ), it does not work
Originally posted by: Loren Meck
Why are examples of real sink code impossible to find? By this, I mean code that starts from scratch like VB does, with the names of the interfaces and the names of the events, instead of cheating by including .c and .h files from the server.
Why can't the sink code get the DIID__ values from the type library? Or even the .tlh file? (where do .tlh files come from anyway?)
I have a local server firing events. A VB program with event handlers for those events doesn't get them. Tracing through the event firing code, nConnections is zero when an event is to be fired. This indicates to me that something in the way VB attempts to advise the server of the sink is failing (without any error message??) I've been trying for a week to find a way to debug this problem.
Originally posted by: Murat Emrah
Just I will say one word "Perfect!!.."
Originally posted by: mvm
Yes, this was the most helpful of the many connection-point examples i've seen.
ReplyOriginally posted by: iunknown
Fantastic step-by-step illustration!!!
Originally posted by: Reckless
Un-mystified ATL Events using clear, concise examples.
Great work! Thanks!
ReplyOriginally posted by: DojinJindo
I desperately needed simple sample codes using connection points that compile and work. And I found them in here,
which was my last resort, after searching in a lot of obvious places (even in the Microsoft MSDN site). I'm
also getting extra bonuses of help on the topic. What
a treat!
Thanks Andrew and CodeGuru.
Reply