Solved

CommonDialog and File Extension

Posted on 1998-11-05
7
203 Views
Last Modified: 2010-04-30

Is it normal that when I want to save a file with a four
letter extension like HTML that it writes it as HTM?

How do you make it write the proper extension?
0
Comment
Question by:vip110598
7 Comments
 

Expert Comment

by:JimKirby
ID: 1443303
I don't think I have a real answer for you, but it has always been my understanding that an IBM PC (such as old DOS, Windows 95/98, etc.) will allow only a three-letter extension, whereas a MacIntosh or a computer using the UNIX operating system will allow the four-letter extension you want.  I guess it's due to feeding habits of the different beasts . . .

JK
0
 
LVL 12

Expert Comment

by:mark2150
ID: 1443304
There's a flag in the common Dialog control that will allow long file names. You have to set it for it to save in other than DOS 8.3 format.

M

0
 
LVL 12

Expert Comment

by:mark2150
ID: 1443305
cdlOFNLongNames      &H200000       Use long filenames.
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
LVL 4

Expert Comment

by:idcanada
ID: 1443306

That's funny,
I use this flag and yet it still does not let me save an
extension with more than 3 characters.

Mark2150,
is their any other way or could something be setting back
my flag to its default?


0
 

Author Comment

by:vip110598
ID: 1443307

As idcanada mentioned,
when i use this flag, it still does not let me save a *.html.


0
 
LVL 12

Expert Comment

by:mark2150
ID: 1443308
Dunno. It works ok here...

Do you have the MultiSelect flag on?

Check you windows settings.

M
0
 
LVL 4

Accepted Solution

by:
idcanada earned 10 total points
ID: 1443309

Have a string keep the Dailogs Filename,
select case filterindex and manualy add the last letter of the ext.

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question