| View previous topic :: View next topic |
| Author |
Message |
dangt Newbie
Joined: 19 May 2009 Posts: 20
|
Posted: Wed Nov 18, 2009 5:54 pm Post subject: Inter-process Communications with VDS |
|
|
| Can anyone provide sample codes for Inter-process Communication between 2 VDS programs? |
|
| Back to top |
|
 |
bornsoft Contributor

Joined: 19 Feb 2009 Posts: 113 Location: Germany
|
Posted: Wed Nov 18, 2009 6:00 pm Post subject: |
|
|
The simplest would be using the registry, i think. but DDE is also an option and even an ini-file can be used (while opend it sits in memory and can be accessed instantly).
code samples do i not have at hand at the moment, but i'm sure you can figure it out by yourself.
greetings
marcus |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Wed Nov 18, 2009 6:28 pm Post subject: |
|
|
| You can also use localhost UDP using the vdsipp extension. Using something like UDP you can easily communicate between apps by setting one up as a server and the other as a client. |
|
| Back to top |
|
 |
dangt Newbie
Joined: 19 May 2009 Posts: 20
|
Posted: Wed Nov 18, 2009 7:10 pm Post subject: |
|
|
| I'll look more into localhost UDP. At the moment I'm trying namepipes. |
|
| Back to top |
|
 |
Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Fri Nov 20, 2009 12:01 am Post subject: |
|
|
By Inter-Communicate do you mean on the same PC or network communication?
If you mean two VDS apps talking to each other on the same machine, I would recommend using the freeware extension vdsmem.dll currently found at the bottom of this page:
http://www.vdsworld.com/search.php?view_mode=dllfree&file_id=0&author_id=0&keywords=&order_by=0&sort_dir=0&match_type=0&sid=fed5d9062bf6ac90a7e13e6ffe8cecb1&start=35
| Quote: | Description:
This extension allows Visual DialogScript applications to talk to each other and a method for unlimited variables. This is achieved by using blocks of memory and writing and reading information from/to the memory. Information can be stored and read easily by use of memory mapped variables. This may sound complicated but by trying the examples provided you will relize how easy it is to allow other applications to talk with yours and yours with theirs. You can also use this extension to only allow a single instance of your application to be opened at the same time by writing a variable to memory and reading it before execution. It also includes the extension's source code. |
|
|
| Back to top |
|
 |
bornsoft Contributor

Joined: 19 Feb 2009 Posts: 113 Location: Germany
|
Posted: Sun Nov 22, 2009 4:01 am Post subject: |
|
|
Hi,
it's just an idea and I don't know if this was dicussed here before, but how about using a hotkey to "generate" events to which an application can respond to?
I've got no time to test at the moment, but I think you could define a hotkey in one application and process it, when another vds-programm does a "window send ... <hotkey>" to the window of program 1.
IMHO one should be able to pass different events between two applications.
Please correct me if i'm wrong.
greetings
marcus
Edit:
I just tested it and it works perfectly - even if the dialogs are not shown. To define a hotkey, a dialog must be created before (but can be invisible), the program that sends doesn't need a dialog at all. |
|
| Back to top |
|
 |
|