Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

CommonDialog and File Extension

Posted on 1998-11-05
7
Medium Priority
?
209 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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 40 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

Technology Partners: 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!

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

730 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