Problems with new File Open Dialog in a 16 bit Application

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???
 
J

John Harrison

Martin Schöllerl said:
I'm using a 32 Bit - dll, wich is loaded by thrunking into a 16 bit
application.
[snip]

What do i do wrong???

Post to the wrong group. This one is about the C++ language, you have a
Windows programming question. Try for instance.

John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,176
Messages
2,570,949
Members
47,500
Latest member
ArianneJsb

Latest Threads

Top