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
Solved

Raising methods in another executable

Posted on 1998-10-08
3
163 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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB6 - Compare and highlight cell not the same 3 53
Visual Studio 2005 text editor 10 44
Recommendation vb6 to vb.net or others 14 176
vbModal 12 57
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…
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.
This video teaches viewers about errors in exception handling.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

829 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