Solved

Raising methods in another executable

Posted on 1998-10-08
3
160 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
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
waty earned 200 total points
Comment Utility
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
Comment Utility
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
Comment Utility
It is done
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

728 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

8 Experts available now in Live!

Get 1:1 Help Now