all groups > dotnet interop > may 2006 >
You're in the

dotnet interop

group:

Seeking Advice for Inter-Application Communication (VB6 to C#)


Seeking Advice for Inter-Application Communication (VB6 to C#) Joseph Geretz
5/26/2006 11:57:55 AM
dotnet interop:
I need to communicate between two applications. The legacy application is in
VB6. New development is in C#. Here's the scenario:

The VB6 app will be pumping document files into a folder. We'll be writing a
new (C#) class for this new feature.

The C# Application (as distinct from the file pumper class just mentioned)
needs notification for each file pumped into the folder in order to process
the file.

(FileSystemWatcher is not going to do it for us. The C# Application needs
certain meta-information regarding each file, that the VB6 application is in
possession of. Yes, pairing a companion tag file together with each document
file might do the job, but is this really the best way to communicate
between two applications? By passing files around?)

So what is the best way to set up a 'conduit' beteen two applications? The
pattern I'm trying to achieve would have the source application initiate an
activity which would trigger an event raised in the target application to
notify the target application that the activity has occurred.

Thanks for any advice which you can offer!

- Joseph Geretz -

Re: Seeking Advice for Inter-Application Communication (VB6 to C#) Ludwig
5/26/2006 6:09:50 PM
On Fri, 26 May 2006 11:57:55 -0400, "Joseph Geretz"
[quoted text, click to view]

have a look at
http://www.codeproject.com/dotnet/VB6andVBNETWindowMessages.asp?df=100&forumid=42526&exp=0&select=1114812
--
Ludwig Stuyck
Re: Seeking Advice for Inter-Application Communication (VB6 to C#) chanmm
5/27/2006 12:18:08 AM
Interoperate between VB6, I assume it is a COM object, with C#. The new
features put it in C#.

chanmm

[quoted text, click to view]

AddThis Social Bookmark Button