>>>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>
>
Don't know yet <g> I was playing with SavePicture VFP function and displaying icons in the grid. I have it all working now, but as usual, I don't like the result :) The icons look too big and I'm not sure, they are true icons. I don't know how exactly should I create an icon file having an object reference to it. I'm using IconBuddy class, I can send you my modified version, if you'd like and have a minute <g> to look into it.
>
>>>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.
If it's not broken, fix it until it is.
My Blog