windows filerequester in b3d

Blitz3D Forums/Blitz3D Programming/windows filerequester in b3d

Bremer(Posted 2004) [#1]
Hi, does anyone know how to use the windows filerequester from within b3d? The one in the code section only works every second time you call it for some reason unknown to me.

http://www.blitzbasic.com/codearcs/codearcs.php?code=916

Thats the link to the one in the code section if that helps anyone.


electronin(Posted 2004) [#2]
I'm working on a winapi lib that includes the file requesters as part of it. I think I'll have a usable version out before too long :)


Zethrax(Posted 2004) [#3]
'GetOpenFileName' seems to be the Windows API function to use for this, but it requires a 'OPENFILENAME' structure to send and recieve data.

How you'd go about setting up and communicating this structure with its non Blitz data types to the appropriate Windows API DLL from within Blitz I have no idea, though there's probably some way of doing it (by passing banks, etc).

This Purebasic forum page has some links on the Windows API that might be of use to you.

http://purebasic.myforums.net/viewtopic.php?t=10046


Ice9(Posted 2004) [#4]
zawran I used it and had the same problem.
The open file works fine but the save file crashes the
second time you use it. I never went back to figure out
what was causing it.