1 (edited by livexox 2018-05-02 21:40:21)

Topic: From a running program pass variables to another running program

Hello, I'm trying to work on a project where I have two running applications and I want both apps to be able to communicate with each other. For example Program A runs and calls Program B with some parameters. Program B processes the parameters and saves the output to text file. Program A then opens the output file and reads the data.  This process works but there is a big delay when saving and reading from the output file. I want to speed up the process, maybe using TMemoryStream  or  TStream to save a variable from one program to other or is there another way? Also I'm not using any databases for these two programs. Any help will be appreciated it. Thanks.

Re: From a running program pass variables to another running program

Anyone has an example of Tstream??

Re: From a running program pass variables to another running program

You can pass parameters through the system registry.
Class TRegistry.

Re: From a running program pass variables to another running program

Sorry for delay, I was on vacation.  Is your question still actual for you?

Dmitry.

Re: From a running program pass variables to another running program

yes, I will like to have a way to pass some variables between two running programs.  Writing to the hard drive is a slow process, using memory will be a lot faster.

Re: From a running program pass variables to another running program

Unfortunately MVD can't suggest fast way to communicate between two applications, only using files.

Dmitry.