Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Transfer data between two vb6.exe apps in same computer?

Status
Not open for further replies.

tedsmith

Programmer
Nov 23, 2000
1,762
0
0
AU
How can I pass variables between two separate vb6 applications A and B running at the same time in the same computer?
I tried writing output from A to a common file in a Ramdisk and regularly reading it in B which works but is cludgy.
Is there a way to do it with some sort of custom clipboard?
 
You could try setting up a DDE conversation between them?? Check it out in the help file.
 
It is also possible to send data to another program with Sendkeys. I made a program once that created a report by sending the data to notepad.exe by using sendkeys. It is possible to start the other application and then send keys to it as though it were typed on the keyboard. It was like this:

Dim ID

ID = Shell("Notepad.EXE",1)

AppActivate "Notepad - (Untitled)"

SendKeys "Here is the text", true

The VB helpfile has an example of opening the windows calculator and adding some numbers up.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top