M
Martin Schöllerl
I'm using a 32 Bit - dll, wich is loaded by thrunking into a 16 bit
application.
In the dll a function is called, wich displays the Win32-FileOpenDialog.
Everything works fine (the FileOpen - Dialog is displayed). When i change
the directory to one with much files - no files are displayed.
here is the source:
ofn.lStructSize= sizeof(OPENFILENAME);
ofn.lpstrTitle= strlen(szTitle) > 0 ? szTitle : NULL;
ofn.lpstrFilter = strFilter;
ofn.lpstrFile = szFilename;
ofn.nMaxFile= 512;
ofn.lpstrInitialDir= szInitialdir;
ofn.nMaxCustFilter= nFilters;
ofn.lpstrDefExt = defExt;
ofn.nFilterIndex = ofn.nMaxCustFilter + 1; // 1 based number
ofn.Flags = OFN_HIDEREADONLY| OFN_FILEMUSTEXIST;
GetOpenFileName((OPENFILENAME*)&ofn);
What do i do wrong???
application.
In the dll a function is called, wich displays the Win32-FileOpenDialog.
Everything works fine (the FileOpen - Dialog is displayed). When i change
the directory to one with much files - no files are displayed.
here is the source:
ofn.lStructSize= sizeof(OPENFILENAME);
ofn.lpstrTitle= strlen(szTitle) > 0 ? szTitle : NULL;
ofn.lpstrFilter = strFilter;
ofn.lpstrFile = szFilename;
ofn.nMaxFile= 512;
ofn.lpstrInitialDir= szInitialdir;
ofn.nMaxCustFilter= nFilters;
ofn.lpstrDefExt = defExt;
ofn.nFilterIndex = ofn.nMaxCustFilter + 1; // 1 based number
ofn.Flags = OFN_HIDEREADONLY| OFN_FILEMUSTEXIST;
GetOpenFileName((OPENFILENAME*)&ofn);
What do i do wrong???