Solved

Receiving events from remote object.

Posted on 1998-08-13
2
133 Views
Last Modified: 2010-04-30
I developed a simple ActiveX Exe "server" which provides
Notify objects. The Notify class has a Event which is used
to broadcast a message to "clients" sharing the object

I first tested it locally and it works fine. With multiple
instances of my "client" program running locally (and connected to a local server), each one receives the
event notification.

Now I would like to distribute this, so that the "server" runs on a remote machine. I prepared a remote installation with the setup wizard and the remote automation connection
manager

However, I get an automation error when I declare my variable with events.

Dim not1 As Notifier
Dim WithEvents not2 As Notifier

Set not1 = New Notifier -> no error
Set not2 = New Notifier -> automation error when server
                           connection is remote


Is there a limitation on using events from remote applications? Or did I overlook something in setting
my application properties?

Any help would be greatly appreciated.
0
Comment
Question by:cerik
2 Comments
 
LVL 2

Accepted Solution

by:
lmorris earned 100 total points
ID: 1468699
I don't know if this is the case, but if you're using remote automation (as apposed to DCOM), withevents will not work. It's not supported by the automation manager. See http://support.microsoft.com/support/kb/articles/q172/3/12.asp for more info.

For an example on how to use withevents via DCOM, see http://support.microsoft.com/support/kb/articles/q175/5/10.asp

It includes a download which demonstrates how to do it.

0
 

Expert Comment

by:ryderjam
ID: 4732645
I dont think its fair to levy such a high point load when the accepted answer refers to microsoft.com.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now