Solved

EnableShellOpen for a dialog application

Posted on 1998-07-25
2
324 Views
Last Modified: 2013-11-20
I made a dialog application that reads some data from a file with extention *.abc then excute some action.

I want to register the extention *.abc so that my application can be opened and excuted from explorer (by double click on the file name *.abc) or by using shellexecute... from another application.

I know how to do that in case of Doc-View application by simply adding the abc extention to the resource file and adding the following to my initinstance function:
      //Enable DDE execute open
      EnableShellOpen();
      RegisterShellFileTypes();

Now how can I do the same for a dialog application ( which by default does not have a document class)?
0
Comment
Question by:khaledo
2 Comments
 
LVL 2

Accepted Solution

by:
SamratAshok earned 100 total points
ID: 1319760
Add following entries to registry.

\\HKEY_CLASS_ROOT\.abc\Shell\Open\Command

and set the default value to your application executables.

I hope you know how to use registry functions.
0
 

Author Comment

by:khaledo
ID: 1319761
yes it worked
Thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
GIF file bit manipulation for color change 5 104
Process filename extension 3 156
if loop in java 3 114
fix34  challenge 9 96
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now