Solved

EnableShellOpen for a dialog application

Posted on 1998-07-25
2
325 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Prevent this page from creating additional dialogs. 3 395
FizzBuzz challenge 9 76
changeXy challenge 13 67
Trying to run powershell  in a batch file. How do I do this? 8 65
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

911 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

25 Experts available now in Live!

Get 1:1 Help Now