Sondre Garmo

Sondre Garmo

  • NA
  • 48
  • 0

IPC Channel (WM_COPYDATA)

Nov 25 2005 8:54 AM

Hallo!
I have an ownmaked application in Visual C# 2005 .net.
If my application is open and I double-click on a file in windows explorer, I want the file to be opened in my application. If my application is closed and I double-click on a file, my application will start and I've got the filename, but if I again double-click on a file, the new file will not come.

How can I send message about the filename to the open application. Earlier in C# 2003 I'm used a project with name vbAccelerator.Components.Win32 (CopyData.cs) but it doesn's work after I upgrade to C# 2005.

Error 1 'DataReceivedEventArgs' is an ambiguous reference between 'System.Diagnostics.DataReceivedEventArgs' and 'vbAccelerator.Components.Win32.DataReceivedEventArgs' C:\Documents and Settings\User\My documents\Visual Studio 2005\Projects\My Application\frmMyApplication.cs 914 53 My Application

Have somebody a solution for me?
Can I use for example IPC Channel? If I can, how to do it?

Please help me!

Yours faithfully
Sondre Garmo