PDA

View Full Version : Not gl related: directory browsing



HFAFiend
05-04-2001, 12:18 PM
Sorry, but I didn't know where else to post this. I am trying to have my engine be able to search for all the files available in its directory. Anyone have a link to something demonstrating how to read directories on a win32 platforms?

DFrey
05-04-2001, 01:18 PM
See http://msdn.microsoft.com/library/devpro...indfirsti64.htm (http://msdn.microsoft.com/library/devprods/vs6/visualc/vccore/_crt__findfirst.2c_._findfirsti64.2c_._wfindfirst. 2c_._wfindfirsti64.htm)

HFAFiend
05-05-2001, 07:46 AM
Thanks, but I was hoping for more of a way to get a directory listing (or did that do it, and I just missed it??)

DFrey
05-05-2001, 08:23 AM
That, in addition to _findnext (which that page also links to) can be used to construct a filtered or unfiltered directory listing. And with some recursion you can also easily implement directory tree searches. On the other hand if you are only wanting the directory listing so the user can pick a file, there is a much easier way by using the Open file common dialog box.

[This message has been edited by DFrey (edited 05-05-2001).]

V
05-06-2001, 07:56 AM
Speaking of _findfile, does anyone know if there is a _findfile equivalent to handle accessing computers/drives/files over a LAN?

john
05-06-2001, 05:19 PM
Sorry, I don't know where to post this:

my Holden Commodore SS has problems with its macpherson strut. I don't think the dirct acting stabilisier bar is working together with the progressive rate coil springs. Any ideas what I can do to fix?

cheers,
John

DFrey
05-06-2001, 06:08 PM
Have the dealer take look at it. http://www.opengl.org/discussion_boards/ubb/wink.gif

HFAFiend
05-07-2001, 03:41 PM
http://www.opengl.org/discussion_boards/ubb/smile.gif I'm sorry...won't let it happen again