Hi, I´d like to use events with DCOM using RDS, But I can´t instantiated the Object, CAn someone give me an example ?

This i what i´m doing:

. . .

Dim WithEvents EventDCOM as DCOMServer.NMSQ
. . .


Set rds = CreateObject("RDS.DataSpace")
Set EventDCOM = RDS.CreateObject("DCOMServer.NMSQ", "http://mymachine")

. . . .

error is Type mismatch.

Thanks alot