GPWiki.org
GPWiki.org
It is currently Wed Jun 19, 2013 9:05 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Wed Oct 27, 2010 10:37 pm 
Cubic Contributor

Joined: Tue Jul 08, 2008 9:03 am
Posts: 79
Hey all.

I just wanted to ask if its possible to send data from one already loaded executable (Windows) to another already loaded executable? That is, without starting another instance of the recieving executable passing command line arguments to it.

Mac OSX has an Event Manager that lets you send events and notifications between apps and I was just wondering if a similar system might exist on Windows.

Naturally you could write data to a file or data base from one executable and have the second .exe read from it, but that requires both executables to know the location, etc of the storage repository and it wastes time writing / reading data like that. You could also send data over TCP to your loopback address, specifying a port number that the recieving application listens on, but again its kind of messy and wastes a bit of time.

What would be the best way to share information between two executables on Windows?

Thanks everyone =]

_________________
A pawn can eventually become a queen...


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 27, 2010 10:50 pm 
Corpse Bride
User avatar

Joined: Tue Jul 01, 2008 11:44 pm
Posts: 2217
Location: England
I've heard of DDE which does this. I don't know much about it.

http://en.wikipedia.org/wiki/Dynamic_Data_Exchange

_________________
I ain't pushing no moon buttons.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 28, 2010 4:30 am 
Cubic Contributor

Joined: Tue Jul 08, 2008 9:03 am
Posts: 79
Ah!

Thanks a lot ;)

_________________
A pawn can eventually become a queen...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 28, 2010 7:36 pm 
Babirusa
User avatar

Joined: Thu Aug 19, 2004 2:55 pm
Posts: 9241
Location: The Netherlands
I think you will want to use so called "Named pipes":

http://msdn.microsoft.com/en-us/library ... 85%29.aspx

I do think it might be a bit of a hassle to setup, so you might use an example somewhere instead.

_________________
Serious game developer

http://www.persistentrealities.com
http://www.persistentrealities.com/vbfibre
http://www.ambiances.nl


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 29, 2010 9:54 pm 
Game Programming Guru

Joined: Sun Aug 15, 2004 6:20 pm
Posts: 1090
http://en.wikipedia.org/wiki/Inter-process_communication

I prefer shared memory, but that's just me. Choose your solution according to the problem.

_________________
Heard in #gpwiki: <wzl> is there some serious grammar fail in your line or am i just too intelligent for your logic


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group