There's an executable file generated from my program in MFC and I want to use it as the default program to open the .jpg files. That is to say, each time I double click a .jpg file, my program will run.
I tried to add some registry entries linking .jpg files with my program, such as HKEY_CLASSES_ROOT.jpg\shell\open\command (set its val...
Using Win32-specific APIs, is there an easy way to start an external application to open a file simply by passing in the path/name of the file?
For example, say I have a file called C:\tmp\image.jpg. Is there a single API that I can call to tell Windows to open the application associated with .jpg files? Without having to do a bunch o...
I have a click-once application.
I have an associated file that I store the application's data in.
When a user clicks on one of these files I want it to open the click-once app and load the file.
I can set up the file association in the publish, the icon and name is correctly set. Clicking on the file opens the application, but the ap...
I'm looking to programmatically modify the edit verb for the shell on Vista. For example, I want right click edit (in explorer) to open a .cs file w/ Notepad++.
How do I change a file association on Windows Vista?
Thanks
...
Is this possible? I installed Dreamweaver to take advantage of some third party plugin to make special xml files but upon installing it, it took over all my ASP.NET file types (even though I clicked 'select none' on the pop-up at first start). Anyways does anyone know if there is a quick automated way to restore them to Visual Web Develo...
I have a dual setup development machine with Visual Studio 2003 and 2005.
How can I restore the original file associations to Visual Studio 2003?
Everytime I try to open up a *.cs file it opens it with 2005 when I want it to default open up in 2003.
I know how to do this using the the "Windows Explorer/Folder Options/File Types" int...
How can I associate an extension of a file to an program in Windows CE? It's so boring to run my Python programs using cmd. If I associate Python with my *.py files I'm going to run my program faster. Thanks!
...
I need to be able to double click on a file on the desktop and have Eclipse (or more specifically Lotus Notes) kick off my custom action, to process and display it. I've found
http://www.developer.com/java/other/article.php/3648736/Eclipse-Tip-Define-Custom-Content-Types-to-Identify-Your-Data-Files.htm
which describes how to setup a ...
I want to associate a file extension with my ClickOnce application. There is a File Associations part in the Publish options but I can't manage to make it work.
...
I've written a program that edits a specific filetype , and I want to give the user the option to set my application as the default editor for this filetype (since I don't want an installer) on startup.
I've tried to write a re-useable method that associates a file for me (preferably on any OS, although I'm running Vista) by adding a ke...
I have a C# project using VS2005. Basically I have two icons, one for the application, and one for files that are associated with the application.
I have associated these files with the application, and I know how to set their icons in the Registry, but I can only set them to the application icon because it seems to be the only external...
System.NullReferenceException: Object reference not set to an instance of an object.
at System.Deployment.Application.ShellExposure.RemoveFileAssociationCLSIDInfo(FileAssociation fileAssociation, DefinitionIdentity subId, RegistryKey classesKey, String clsIdString, String productName)
at System.Deployment.Application.ShellExposure.Remo...