Re: Common dialog control returns wrong filename

From: Norman Diamond (ndiamond_at_nospam.nospam)
Date: 10/12/04


Date: Mon, 11 Oct 2004 18:55:04 -0700


"Franz Strele" wrote:
> "Norman Diamond" <ndiamond@nospam.nospam> schrieb im Newsbeitrag
> news:2AF9BB59-EAE5-413F-B975-FC9901C42FA3@microsoft.com...
>
> > common dialog control returns to your program a filename of an existing file
> > instead of the new name that you put on the filename line. Your program will
> > destroy your customer's existing data.
>
> if you set the overwrite-prompt-flag ("cdlOFNOverwritePrompt" for vb,
> "OFN_OVERWRITEPROMPT" for win32-api) you get at least a warning that the
> (existing) file gets overwritten...

Herr Strele, thank you for your suggestion. I do not mark your posting as an
"answer" because the bug (Windows bug instead of VB bug) still remains, it is
a serious bug, and I don't want Microsoft to think it is solved. But as a
partial
workaround it is indeed helpful, thank you.



Relevant Pages

  • Status of critical "wrong filename" problem ???
    ... I'm surprised that the serious bug in the windows/visual basic ... I have included an additional overwrite warning in my program which is ... Is it possible somehow to create a work-around to correct the wrong filename ... text field of the common dialog control and warn the user if this is ...
    (microsoft.public.vb.bugs)
  • Re: code within libraries vs code within same project
    ... Is this a bug in System.Diagnostics.StackTrace? ... //the .dll do not appear to have all the info, particularly filename. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Common dialog control returns wrong filename
    ... It is caused by the listview generating a CDN_SELCHANGE: message when the listview area is clicked. ... This is not a bug per: se, but rather the way a listview works. ... : Remember too that Word and Excel do not use the Windows common dialogs, so: their custom implementation to duplicate the functionality of the real: common dialogs may circumvent the problem. ... sometimes:: returns a different filename from the name that is displayed on the ...
    (microsoft.public.vb.bugs)
  • Re: Guarantee Critical Regions in Portable code. Portable Semaphores?
    ... Parsing the filename is the last resort if your MP3 file is missing ... inherent FS bug. ... Observe that an Explorer window does not show the 8.3 ... on a FAT volume also suppresses these 8.3 orphans. ...
    (comp.arch.embedded)
  • Re: Portability issues with filenames provided by tkdnd
    ... a kubuntu bug since the output from ls also doubles the percent signs ... ls outputs a single percent sign in the filename ... I therefore suspect a bug in Kubuntu 8.04. ... so far I could find only one platform that doubles the percent sign in the filename, and this looks pretty much like a bug of this platform. ...
    (comp.lang.tcl)