Re: Common Dialog - Change file extension

Tech-Archive recommends: Fix windows errors by optimizing your registry




"Bob Butler" <tiredofit@xxxxxxxxxx> wrote in message
news:e$zF5WbnFHA.3256@xxxxxxxxxxxxxxxxxxxxxxx
> "Dave" <Nobody@xxxxxxxxxxx> wrote in message
> news:%23bVjaTbnFHA.3256@xxxxxxxxxxxxxxxxxxxx
>> A tricky area, for plain text files you are 100% right, but for files
>> whose format is distinct then the extension is the first thing the
>> operating system has to identify the file type.
>> Giving a BMP file the extension .PICCY or .BMAP or anything but .BMP
>> will cause problems when you want to open it.
>
> You have a point but in cases where there is a need to limit extensions it
> can make sense for the app to validate that what was typed is one of the
> valid choices and possibly prompt the user if they said something else.
> What I object to is the app just appending what it wants to what I typed
> and
> not telling me that it changed it.
>
> If my choices are Bitmap, JPeg or GIF and I have the drop-down set at
> "Bitmap files" but type in "test.gif" then I expect the app to save
> "test.gif" and not "test.gif.bmp".

Fair enough, it's down to the programmer to deal with each situation
intelligently.

We're doomed........................

Dave.


.



Relevant Pages

  • Re: Newbie: Saving as Word doc
    ... I've inherited a VB app that experts here say is poorly written. ... Merely changing a file's extension does NOT "convert" that ... application has to support the file's format). ... > goes back into the folder, opens every doc, and resaves it as a Word doc. ...
    (microsoft.public.vb.general.discussion)
  • Re: Common Dialog - Change file extension
    ... > whose format is distinct then the extension is the first thing the ... can make sense for the app to validate that what was typed is one of the ... valid choices and possibly prompt the user if they said something else. ...
    (microsoft.public.vb.general.discussion)
  • Re: About File "types" and Office 12.1 Service Pack and double-clicking
    ... in a file format that nobody is actually using. ... Remember that when you are Microsoft and you are selling to the Defence ... use your application to fire "pinball attacks" around the system. ... If the file type is blank, Word will assume the extension is correct and try ...
    (microsoft.public.mac.office.word)
  • Re: Running other applications
    ... associated with a file type (extension). ... file and calling FindExecutable: ... ByVal lpDirectory As String, ByVal lpResult As String) As Long ... > The app is a program called Data Junction. ...
    (microsoft.public.vb.general.discussion)
  • Re: Avaya IP Office TSP unpredictable lineMakeCall() failure
    ... application logs. ... invoked a lineMakeCall from device xyz to extension 123 then they should be ... > Exactly the same app works reliably with all of them, ...
    (microsoft.public.win32.programmer.tapi)