Solved

How to create a custom file format in C using file operations?

Posted on 2011-03-09
1
499 Views
Last Modified: 2012-06-27
Experts,

How to create custome file formats for a specific application?
Example: I am developing an application which stores huge data to a file and i dont want extension for that file as .TXT or .bin,
Instead i want to defile my own file extension like ".pkg", ".kar" ,".xxx "
0
Comment
Question by:srimallikarthik
1 Comment
 
LVL 4

Accepted Solution

by:
parnasso earned 500 total points
ID: 35092907
Ithink you need to create an association between a file extension and your application. Therefore every time someone clicks on a file with your extension a new instance of your application is created.

In order to that to happen you need to modify some registry keys, to make the registry look like this:

 .myextension = MyApp
      MyApp = My Application
        |
         -- Shell
              |
               -- open
                    |
                     -- command = c:\directory\myapp.exe %1

Find this Microsoft Link to a VB sample code. Hopefully it is esay to change to C code.
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MP3 storage in the cloud 2 96
WPF - External data binding to controls inside a UserControl 2 70
How To Loop - Python 19 96
Not needed 13 120
With the withdrawal of support for Windows Server 2003 this summer, many clients face the issue of moving away from their 2003 installs. There are a few options out there that many people/companies are selling. But the clients I have, haven't wanted…
This article will show, step by step, how to integrate R code into a R Sweave document
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

820 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