forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Inter-process Communications with VDS

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
dangt
Newbie


Joined: 19 May 2009
Posts: 20

PostPosted: Wed Nov 18, 2009 5:54 pm    Post subject: Inter-process Communications with VDS Reply with quote

Can anyone provide sample codes for Inter-process Communication between 2 VDS programs?
Back to top
View user's profile Send private message
bornsoft
Contributor
Contributor


Joined: 19 Feb 2009
Posts: 113
Location: Germany

PostPosted: Wed Nov 18, 2009 6:00 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Wed Nov 18, 2009 6:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
dangt
Newbie


Joined: 19 May 2009
Posts: 20

PostPosted: Wed Nov 18, 2009 7:10 pm    Post subject: Reply with quote

I'll look more into localhost UDP. At the moment I'm trying namepipes.
Back to top
View user's profile Send private message
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Fri Nov 20, 2009 12:01 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
bornsoft
Contributor
Contributor


Joined: 19 Feb 2009
Posts: 113
Location: Germany

PostPosted: Sun Nov 22, 2009 4:01 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group