?
Solved

Raising methods in another executable

Posted on 1998-10-08
3
Medium Priority
?
171 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 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
Suggested Courses
Course of the Month16 days, 9 hours left to enroll

864 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