|
-
September 15th, 1999, 06:59 PM
#1
File Extension for dummies
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 [email protected]
Jerusalem College for Technology
-
September 15th, 1999, 07:12 PM
#2
Re: File Extension for dummies
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
-
September 15th, 1999, 07:38 PM
#3
Re: File Extension for dummies
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 [email protected]
Jerusalem College for Technology
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|