Home > Software engineering >  A program's data on VB want how is passed on to another?
A program's data on VB want how is passed on to another?

Time:10-11

A form to another form of words defined in the module and a variable
So if passed between two independent exe changed how to set up, thank you!

CodePudding user response:

By sharing files, clipboard, WinSock control (network),

CodePudding user response:

The communication methods between the temporary text file sharing this process there are plenty of advantages, compared to other method only listed below I can think of now:
Loose coupling between process,
Can be on the same machine, process, also can cross machine, across the operating system, hardware platform, and even multinational,
, convenient debugging, and monitoring, only let the third party or artificial view the temporary text files,
Switch, convenient online service, need to delete or create the temporary text files,
, is convenient to realize distributed and load balancing,
Services to provide convenient, queue, queue is full and it is almost impossible to happen (unless the hard disk space full)
DE...

CodePudding user response:

If the information is simple, and the program runs on a computer with the most convenient and, share files
If the information is more, and the program may not run on a computer, with a database is a better way,

CodePudding user response:

May I express is not clear, I mean:
VB, for example, I have A form, A=3, the value passed to the B form, only A public variables defined in the module can be realized

If A program with B to achieve between the passing of A=3, such as the above how to write code?

CodePudding user response:

reference 4 floor myxiqi response:
may I express is not clear, I mean:
VB, for example, I have A form, A=3, the value passed to the B form, only A public variables defined in the module can be realized

If A program with B to achieve between the passing of A=3, such as the above how to write code?

1 l tell you, no? Need to
By sharing files, clipboard, WinSock control (network) named pipes, dde, DCOM and etc in inter-process communication,

CodePudding user response:

reference 4 floor myxiqi response:
may I express is not clear, I mean:
VB, for example, I have A form, A=3, the value passed to the B form, only A public variables defined in the module can be realized

If A program with B to achieve between the passing of A=3, such as the above how to write code?


That is not the same program, the variable name nature is not relevant.
But to be imagine the effect of the building Lord there is a relatively simple approach: DDE data exchange.
, of course, have to go through a control properties to transit the. Such as the TEXTBOX or Lable (the runtime read-only, so generally used to accept)
Need to set up a program for the source of dde, and ensure that every time to run the program, as an acceptable program complains error handling (of course)

I just have a simple routines: & gt;> Portal & lt; <

CodePudding user response:

FindWindow, SendMessage

CodePudding user response:

http://bbs.csdn.net/topics/330170891 if useful for you
  • Related