Click to See Complete Forum and Search --> : File Extension for dummies


Sami Garzon
September 15th, 1999, 06:59 PM
Hi. All my problems were solved (thanks Jan, thanks Roger), just one (last) detail left. The question is;

I've made an application using the wizard in VC++6. This App has a menu, and in the menu exists the classical Save and Open options. How can I specify an extension for the files saved (opened) by my program? It's a graphics prog, so the extension need to be something new, not recognised by Windows. There's no really need for associating the extension to the program, only to tell the program which extension he need to look for.
Hope that was understandable;
Sami Garzon :)

--------------
Sami Garzon :) garzon@mail.jct.ac.il
Jerusalem College for Technology

September 15th, 1999, 07:12 PM
I know there is an option you can setup the default file extension in the Wizard when you create a new project. At the Step 4 of 6 page, you can find a "Advanced" button and that button allows you to set those configurations. Otherwise, you need to modify the string for your document in the String Table.
Look for something "Document" in any string and modify the 3rd and 4th field corresponded to the "\n". I haven't tried that out. So, you might try these options to see if that works.

Hope this helps.

Allen

Sami Garzon
September 15th, 1999, 07:38 PM
Thanks Allen. It worked -- I got to the String Table, and in the 3rd and 4th column put ".mfc" (let's pretend that this is what I wanted for extension). Good. The Save Dialog offered me the right extension, ".mfc"; and the Open Dialog also requested the ".mfc" extension. But (there's alwais a 'but'), when I tried to open, I received an "Unexpected File Format Error"!! Any Idea Why it's this happening? Somebody experienced this before?
Thanks;
Sami Garzon :)

--------------
Sami Garzon :) garzon@mail.jct.ac.il
Jerusalem College for Technology