Create project file like . psd, . sln, a own, etc

Asked

Viewed 173 times

2

I wonder how it works to create these types of files, sln, psd, project files, photoshop psd, visual studio sln, I want to create my own kind of project, I tried to search on Google, but, I did not know how and I did not get results of my interest, I am currently using C# I am beginner in language.

  • It depends on the goal. If you put what it is, give details, we can answer, otherwise not to help you.

2 answers

1


The name of this process is file type association. Basically works this way:

  • A program associates a given extension (for example *.minhaExtensao) to a programme (ex. C:\Programas\minhaExtensaoEditor.exe) next to Windows.
  • When user runs a double-click on file D:\teste.minhaExtensao Windows will search on a local storage called Registry by any call linking the extension to a program - and in this case this association is found.
  • Windows will then try to run the following command:

    C:\Programas\minhaExtensaoEditor.exe 'D:\teste.minhaExtensao'
    
  • The program minhaExtensaoEditor.exe is called, and a parameter informing the file to be opened is received.

(The process is a little more complicated than this sequence, but it illustrates the basic steps.)

  • It helped a lot, thank you very much, I just wanted to ask, if you have some link, or something like that that contains some content about, I want to study more deeply this, for a project of its own, kind of a time-pass. I need to mainly learn how to create a file, where I can save various values, both as image and code, I was thinking about doing something similar to the SLN of visual studio. Well I know it is difficult or nothing happens overnight but I want to dedicate myself to study this, I am 16 years old and I want to go studying programming.

  • @Adelsonrocha Functional example here: http://stackoverflow.com/questions/2681878/associate-file-extension-with-application

0

PSD files are created within Photoshop itself, while creating a new file, while SLN files are created together with Visual Studio Solutions.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.