Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

???    Getting 2 VB progs to talk to one another

Posted on 2003-03-25
5
Medium Priority
?
308 Views
Last Modified: 2010-04-17
We have created a single VB program, which we want to split into 2 parts, one part of the program on one computer the other part on another can anybody help on where to start this ???  we are using USB as the transfer medium.

This is Urgent but I havent many points, so any help would be appreciated.

Reegs
0
Comment
Question by:reegs
  • 3
  • 2
5 Comments
 
LVL 77

Expert Comment

by:GrahamSkan
ID: 8203410
I think you need to give more information about what each part of the program is supposed to do. What sort of interaction is required between them? Also what are the Windows and VB versions? Have you established a successful USB connection?
0
 

Author Comment

by:reegs
ID: 8203995
Hi Graham,

Thank you for your prompt reply, I did not personally write the programs but I will endeavour to anwser the questions.

The OS can be either WinXP or Win 98, at the moment the 2 machines have one on each. The VB program is VB 6 and yes we have USB2 working fine we also have Hi Speed Lan 1Gig, I must admit it really flies the data. We can use either and/or set up the machines to meet any alteration that maybe required.  

Now trying to explain the program,  ha ha

We have  VB (1) program that computes data (info) situated on one machine, (it doesnt matter which one we put it on so long as we have one program one machine) the other VB program (2) is situated on the other machine, its job is to calculate a series of numbers which we want fed to the other program so that it can calculate the final data.

So VB (1) sends a request to VB (2) saying calculate your data and feed it to VB (1)   -   VB (2) takes the request and calcuales out the Data and sends it to VB (1)

I hope this explains it....

Many thanks for your help


0
 
LVL 77

Accepted Solution

by:
GrahamSkan earned 90 total points
ID: 8208671
OK. Assuming that one machines can see a shared folder on the other's machine, you could take a relatively low-tech solution of writing the data into a file in the folder with a flag in the same or another file. The calculating program could use a timer to periodically check for new data and when the flag is set it could do the calculation, post the results in a file with a 'done' flag.

Slightly higher tech would be to use NetDDE. Microsoft's article explains: http://support.microsoft.com/default.aspx?scid=KB;en-us;q181946

0
 

Author Comment

by:reegs
ID: 8216201
Hi,

Thanks will try it out.

Will keep you informed

Reegs
0
 

Author Comment

by:reegs
ID: 8218120
With only a few points to offer Graham offered sound advice and it was really appreaciated

Many thanks again

Reegs
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Loops Section Overview

571 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