-dt-
Scripting Contest Winner
;o
Posts: 1819 Reputation: 74
35 / /
Joined: Mar 2004
|
O.P. RE: trying to create a c# COM server
quote: Originally posted by Eljay
Umm why are you using CreateObject?
JScript code:
var o = new ActiveXObject("comtest.sniffer");
and everything else works fine
ok scrap that, it decided it didn't want to work all of a sudden.
JScript code:
var o = new ActiveXObject("comtest.sniffer");
function OnEvent_Initialize(){
function o::onPacket(){
Debug.Trace("Event called!");
}
o.run();
}
That should work, Plus! seems to be fussy about initialisation stuff *shrugs*
* Eljay is intrigued by the class name though
\o/ it works...
Happy Birthday, WDZ
|
|