File extension handling in "Save as type "

L

luigi

Hi,

I am writing a program with a save file dialog. At the bottom of the
dialog, it displays

File name *.foo
Save as type (My file)*.foo

On some XP machines, if I replace * with myName, such that on the
File name edit box shows

File name myFile.foo.

If I click on Save, the program saves the file as myName.foo.foo. That
is, the program automatically adds an extension.

On other machines, it saves as myName.foo, as I expected.

Is there a setting where I can make the behavior consistent?

Thanks in advance,

lc
 
S

Sonu Kapoor

I am not sure whether this helps you or not. But in windows explorer
their is a setting to "hide extensions for known files". You can find
that if you open explorer: Menu->Tools->Folder Options->Tab
View->"Hide extensions for known file types"

Again. I am not sure whether this helps you or not.

Sonu
 
A

Alex Nichol

luigi said:
I am writing a program with a save file dialog. At the bottom of the
dialog, it displays

File name *.foo
Save as type (My file)*.foo

On some XP machines, if I replace * with myName, such that on the
File name edit box shows

File name myFile.foo.

If I click on Save, the program saves the file as myName.foo.foo. That
is, the program automatically adds an extension.

On other machines, it saves as myName.foo, as I expected.

Is there a setting where I can make the behavior consistent?

One machine will have Folder Options - View set to 'hide extensions for
registered file types'; your foo is not such. Best to have that
unchecked.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top