Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Get file list?

Author
Message
Phosphoer
16
Years of Service
User Offline
Joined: 8th Dec 2007
Location: Seattle
Posted: 21st Jun 2009 09:59
Hey guys, I was wondering how you'd go about retrieving a list of filenames in a particular directory with c++. From some googling I've seen something about FindFirstFile, but am not clear on how to use it. Any light that can be shed would be appreciated ^^.


Thanks much!

Bran flakes91093
16
Years of Service
User Offline
Joined: 13th Sep 2008
Location: Crazy Land
Posted: 21st Jun 2009 16:57
I don't know how to do it in C++, but Dark GDK supports this with:



Your_Health = (My_Mood == HAPPY) ? 100 : NULL;
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 21st Jun 2009 16:58
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 21st Jun 2009 17:13
There is the Jegas Game Classes Library, which is up to version 3 for a fee, but there are pre-version three open source versions available here: http://code.google.com/p/darkgdkoop/

There is code in there that queries directories, and though not as "standard" as FindFirst, it uses the built in functions that The Game Creators provided in DarkGDK: Basically a Checklist, and then the information is stored in a double link list that you can sort, filter etc.

--Jason

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size
Phosphoer
16
Years of Service
User Offline
Joined: 8th Dec 2007
Location: Seattle
Posted: 21st Jun 2009 19:56
Thanks guys, that helped

Login to post a reply

Server time is: 2024-10-01 05:52:47
Your offset time is: 2024-10-01 05:52:47