File association (open)
-
The project I'm developing is an Explorer bar which loads and saves files. Because it's an Explorer bar, the target output is a DLL (C# assembly). When the saved files are double-clicked, I would like to launch the Explorer bar. Is it possible to setup an open handler within the DLL, rather than writing a helper EXE that will launch the Explorer bar, etc.? I like the idea of keeping the open-file handler bundled with the Explorer bar in the same DLL. In the mean time, until I hear from someone, I'll work on a helper EXE. Thanks! Arun
-
The project I'm developing is an Explorer bar which loads and saves files. Because it's an Explorer bar, the target output is a DLL (C# assembly). When the saved files are double-clicked, I would like to launch the Explorer bar. Is it possible to setup an open handler within the DLL, rather than writing a helper EXE that will launch the Explorer bar, etc.? I like the idea of keeping the open-file handler bundled with the Explorer bar in the same DLL. In the mean time, until I hear from someone, I'll work on a helper EXE. Thanks! Arun
I am not sure about this one: What about rundll32.exe ? You, IMHO, should be able to associate an extension not only with an executable, but also with an executable with custom parameters. If I am right here, you could then simply associate your extension with "rundll32.exe mydll.dll MyExplorerBarStarter" or something like that. I am not sure it will work with .NET-DLLs though :( Cheers Sebs