?
Solved

Raising methods in another executable

Posted on 1998-10-08
3
Medium Priority
?
167 Views
Last Modified: 2013-11-13
Hi,

I want to create a sort of dispatcher in VB6.  This program should run on the server, and should be able to raise events on several clients.
Server and clients are connected through an Ethernet TCP/IP Windows NT network.
Any idea how I can raise an event from one program  executable), and capture that event in other executables (ActiveX or standard)

Any suggestions more than welcome.

Filip
0
Comment
Question by:fideba
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
waty earned 400 total points
ID: 1438845
First you have to use a timer to check continually for an event.
Second, a program have to generate an event.
 Here are possible solutions :
   - Checking for files. I used that solution at work because
     some process are running under Unix, and other under NT
   - Sending message through pipes
   - Use the Winsock to communicate
   - Use DCom (I have sample, but never used this for the moment)

Make a choice. The easiest is using files. Here we use 2 files, 1 file containing the data, and one flag file. The process check for flag files, when they appears, they read the data file, then delete the files.
0
 
LVL 1

Author Comment

by:fideba
ID: 1438846
Waty,

I'm very interested in your DCOM sample.  I do not want to use files, simply to avoid that my client would have to be polling all the time just to check if the file or its content are there (this generates network traffic, and that's exactly what I'm trying to avoid).  Can you send me the sample ? (filip.dhaenens@ac.com).

Thanks

Filip
0
 
LVL 14

Expert Comment

by:waty
ID: 1438847
It is done
0

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show, step by step, how to integrate R code into a R Sweave document
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

771 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