|
-
Jun 27th, 2002, 10:39 AM
#1
Thread Starter
Fanatic Member
How can I pass data (a string) between applications?
Mindcrime : )
ICQ 24003332
VB 5.0, VB 6.0 SP5, COM, DCOM, VB.NET Beta 2, Oracle 8
-
Jun 27th, 2002, 10:48 AM
#2
Frenzied Member
"Brothers, you asked for it."
...Francisco Domingo Carlos Andres Sebastian D'Anconia
-
Jun 27th, 2002, 10:49 AM
#3
PowerPoster
if they are both your apps, you could pass via a common DLL
there's probably a more elegant way if you're familiar w/ the windows API, but I don't know it
-
Jun 27th, 2002, 10:53 AM
#4
Thread Starter
Fanatic Member
You sit there for ten minutes waiting for a reply then two come at once!
Thanks guys : )
Mindcrime : )
ICQ 24003332
VB 5.0, VB 6.0 SP5, COM, DCOM, VB.NET Beta 2, Oracle 8
-
Jun 27th, 2002, 10:55 AM
#5
As long as the applications are on the same machine I'd say the best way is using Custom Windows Messages. A good resource for this is on .MerrionComputin's website. This seems to be the most efficent way
Another route is a shared ActiveX Exe which then 'could' be used even if the apps aren't on the same machine (although there would be a performance hit). This basically works like part of the coffee MSDN example and shares the same instance of a class.
So the ActiveX exe can sometimes be a little easier to work with because you are basically just working with a class and can raise events but takes more to set up and then you have another component. The Message way is very fast and is a more common way of doing this, highly recommended especially for small amounts of data
-
Jun 27th, 2002, 10:57 AM
#6
Damn I took too long trying to find MerrionComputin's name, because I couldn't remember it.
Actually I had trouble finding what I was talking about on his site so here is a link to the actual page.
http://www.merrioncomputing.com/Programming/IPC.htm
Last edited by Edneeis; Jun 27th, 2002 at 11:01 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|