Hi, Different versions of wxWidgets.
In 2.8.x you need: my $dialog = Wx::FileDialog->new($my,"Select a diagnostics file","","","*.tgz",wxFD_OPEN|wxFD_FILE_MUST_EXIST); You could compile a version of wxWidgets 2.8.x where wxOPEN|wxFILE_MUST_EXIST still existed by specifying #define WXWIN_COMPATIBILITY_2_6 1 at the compile stage. Regards Mark Peter Gordon wrote: > I have just update my Windows version of wxPerl, and a working application > now fails. It fails on wxOPEN. > The first line of code fails, but the second works. > > my $dialog = Wx::FileDialog->new($my,"Select a diagnostics > file","","","*.tgz",wxOPEN|wxFILE_MUST_EXIST); > my $dialog = Wx::FileDialog->new($my,"Select a diagnostics > file","","","*.tgz"); > > On Linux, it works. > > Any idea what the problem is? > > Thanks, > > Peter >
