Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DCOM with Events - any ideas?

Status
Not open for further replies.

rwilliams

Programmer
Aug 9, 2001
17
GB
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?


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top