>>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).
>>
>
>Yes, that's what I mean. Can you please add a sample to the dialog form?
>
Yes I can. But before I add this, are there anymore request/problems ? So I can upload it once <vbg>
>>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.
>>
>
>Not sure, what exactly do you mean here.
It's kind of buffer overflow. Well, I can workaround this a little so you don't have to worry
>
>>You don't have to use OFN_NOCHANGEDIR, it has been used as the default.
>
>Does it mean, I can pass 0 instead of that flag? Or what exactly should be my call?
Yes just pass 0, the function is already include OFN_NOCHANGEDIR.
Herman