hi,
I tried using file_select_ex() fn. But did not work. Can anyone give me an example using this fn.
Should i use Dialog for this?
Thank You
]]>In what way didn't it work? Can you show some code that shows what you did?
]]>file_select_ex("Select Image","c:","GIF;JPG",480,100,50);
]]>The user selection is returned by altering the path buffer, whose maximum capacity in bytes is specified by the size parameter. Note that it should have room for at least 80 characters (not bytes), so you should reserve 6x that amount, just to be sure.
You figure it out from here.
]]>raja: miran is correct with the snippit from the manual.
Does doing it like this change anything?
char path[255]; file_select_ex("Select Image",path,"GIF;JPG",480,100,50);
...the difference being 'path' is not hard-coded into your file_select_ex call as "c:", but rather as 'path' defined as an array of 'char'?
-TT
]]>TeamTerradactyl's idea is correct, but you should make "path" an array of 480.
]]>