Hi, I am making a notepad replica using Dev-Cpp, and I figured if I went into the cmd prompt, and typed in "Notepad whatever.txt" it would create it for you if it didn't exist. I am using the win32 api to code and I wonder how can I use arguments similar to the one in Notepad, and another question, how would you (in code) set a file types default associated program.. for example notepad opens text files. I would like to overwrite that and use my own, and if i decide to distribute it I would like to have the feature in code so users don't have to do it manually. Thanks for the help in advance!!