Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Raising methods in another executable

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
The viewer will learn how to implement Singleton Design Pattern in Java.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
Suggested Courses

609 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