>>Nadya,
>>
>>I hope it's all fine now (after taking a long rest <bg>). Also the "Open" button is now active!
>>Sorry for the all trouble :-)
>>
>>Regards
>
>Hi Herman,
>
>I just tried it. It is exactly what I wanted. You're a genious. I'm feeling like a queen <g> I went to UT with a request two days ago and now I have one completely working solution with what I had in mind originally and another almost finished solution that I worked a little bit on my own with a great help from Frank. My co-workers liked your solution a lot (my manager is not here today). So, I'll present it and finish grid idea as well.
>
>BTW, what is MULTISELECT flag and can I combine it with NOCHANGEDIR?
Do you mean OFN_ALLOWMULTISELECT ? If that's what you mean, it's a flag to allow you to select more than one file. However my function is returning a STRING. So to get this to work you have to change it to return as LONG (pointer).
But be very carefull! It's max buffer is only 255 chars. Each file is separated with one null char and End buffer is 2 (two) null char. I don't use any error checking for returning the pointer. This means that it can be attacked by a malicious programs.
You don't have to use OFN_NOCHANGEDIR, it has been used as the default.
>Once again, thanks a lot. Great job!
You're welcome and thanks for your kind words :-)
Herman