I've followed the MSDN HOWTO: Create a DCOM CLient / Server with Events and hit a problem. When I run the client and the server on the same machine everything goes o.k. When i put the server component onto our NT server I get the following situation
Dim MyObj As DCOMDemoEvents_Svr.Class1
Set MyObj = CreateObject("DCOMDemoEvents_Svr.Class1"
works fine
Dim WithEvents MyEventObj As DCOMDemoEvents_Svr.Class1
Set MyEventObj = CreateObject("DCOMDemoEvents_Svr.Class1"
gives automation error # -2147023149.
Why should putting WithEvents not work when the program is on the server?
Dim MyObj As DCOMDemoEvents_Svr.Class1
Set MyObj = CreateObject("DCOMDemoEvents_Svr.Class1"
works fine
Dim WithEvents MyEventObj As DCOMDemoEvents_Svr.Class1
Set MyEventObj = CreateObject("DCOMDemoEvents_Svr.Class1"
gives automation error # -2147023149.
Why should putting WithEvents not work when the program is on the server?