Solved

CommonDialog and File Extension

Posted on 1998-11-05
7
205 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Suggested Solutions

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…

739 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