Solved

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

Posted on 2011-03-09
1
493 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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
This article will show, step by step, how to integrate R code into a R Sweave document
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
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.

772 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

11 Experts available now in Live!

Get 1:1 Help Now