Solved

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

Posted on 2011-03-09
1
498 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

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Adobe Customization Wizard XI issues 26 236
matchUp  challenge 9 110
count8 challlenge 13 146
Configure File History in Windows 10 Pro 13 99
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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…

810 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