Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

EnableShellOpen for a dialog application

Posted on 1998-07-25
2
Medium Priority
?
342 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 400 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

[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
Screencast - Getting to Know the Pipeline
Suggested Courses

971 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