C/C++ >> Making/Registering a new file type
Posted by cpprogrammer2003 on 10:15:00 05-28-2003
How can I make, and register a new file type? Then after that, how will I be able to make my program read that type of file? Thank You!


Adam
Posted by Neu[Mann] on 12:16:00 05-28-2003
This is, again, a very vague question. You seem to expect everybody here is working on Windows.

To associate a file to a program in Windows, you have to add an entry in HKEY_CLASSES_ROOT in the Windows registry. Use regedit.exe to see tons of examples of how it's made. It should be very self-explanative.
Posted by dxprog on 12:42:00 05-28-2003
Then to read your file I guess you need to write it first, huh? It all depends on the type of file you write. This could be anywhere from a simple text file to a binary file.

_________________
When I got VB, i could have flown without thrusters and shot down TIE Interceptors just by spitting at them.

[ This Message was edited by: dxprog on 2003-05-28 12:42 ]