Recommended Posts

Hi im very new to GameDev.Net so i hope i don't sound too stupid when i ask extreme beginner questions. I have been using VB 6.0 for a few years now and C++ is proving to be a larger challenge than expected. I have search google to the best of my ability and was unable to find the answer to a few basic question (at least without getting so confused by advanced code surrounding my answer).
-------------------------------------------------------------------------------
Topic #1: Directories
How do i scan a directory for it's contents?
How can i find the dir location of the app that im running?
any various other information about directories and/or directory manipulation would be appreciated.
-------------------------------------------------------------------------------
Topic #2: Files
How do i use the basic manipulation functions for files?
ie. Creating, Deleting, Renaming, Writing, Reading, Appending, etc.
Once again any and all addictional information surrounding file manipulation would be appreciated.
-------------------------------------------------------------------------------
NOTE: MY CURRENT LEARNING style HAS BEEN FROM SEARCHING THROUGH SAMPLE CODE I WOULD MUCH APPRECIATE IT IF WHEN FUNCTIONS OR CALLS ARE SPOKE OF THE SYNTEX AND THE WAY IT IS USED IN CODE WOULD BE GIVEN ALSO.
Thank you very much.
Lordoftools

Share this post

Link to post

Share on other sites

for my purposes my applications will only need to be run by windows users, i'd prefer to use universal standards but if this is not possible then window specific ones are acceptable. I could even bare with methods that only work for windows 2000 and newer. I will look into the boost::filesystem which you have suggested but i'd appreciate further ideas on how to handle these issues, so that i may choice the one/ones best suited for my needs.

Thank youLordoftools

0

Share this post

Link to post

Share on other sites

WOW, i just spent an hour going through the boost::filesystem that you suggested and it looks GREAT but the build instructions are fragmented over multiple web sites and i find myself continuously using my back button and reclicking links multiple times just to understand all that im reading about BJam, how to build it, how to use it to build the rest of Boost::Filesystems and this is all long before i can even touch the coding which i'll need to learn inorder to use the system.

Could someone please help simplify the extremely detailed and overly fragmented instructions on how to get Boost installed on Visual C++ 6.0 so that i may work on the coding itself and maybe once i understand more give this install another go on my own?

2) There are tons of Win32 functions for this, but everything you need is included with the C++ language itself.

http://www.cplusplus.com/doc/tutorial/tut6-1.html is a good starter. It will at least show you all of the classes and parameters you need to know to get started. From there, you can google or msdn for more info (MSVC++ also comes with a locally installed C++ language reference).

0

Share this post

Link to post

Share on other sites

Simplified instructions on getting boost::filesystem to work with your compiler: Unzip the boost library to a directory. Add the boost_1_32_0 directory to your project's include path. Add the files in boost_1_32_0/libs/filesystem/src to your project. Edit boost_1_32_0/boost/config/user.hpp and uncomment the line #define BOOST_ALL_NO_LIB.

0

Share this post

Link to post

Share on other sites

Taby, i read somewhere that string.h is not a header file which MSVC++ accepts. I have even tried to include this file in my apps and it gave me file not found errors. Do i have to do something special to get this included so that your source code will work for me or maybe do i just need to DL it from somewhere because it may not come with MSVC++?