using files as rooms

This is a discussion on using files as rooms within the C++ Programming forums, part of the General Programming Boards category; You shouldn't use absolute paths like "C:\Games\MyGame" since you don't know where the user may place it. If you're talking ...

  1. #16
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    You shouldn't use absolute paths like "C:\\Games\\MyGame" since you don't know where the user may place it. If you're talking about folders inside the folder where your exe lies you should use relative paths, like "\\Maps". If your exe lies in C:\Games\MyGame, that path will evaluate to C:\Games\MyGame\Maps.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  2. #17
    Registered User Ajsan's Avatar
    Join Date
    Dec 2003
    Posts
    55

    i've already got that covered

    i knew that, i used a editable path file so that the user will change the address of the main game folder in the file and during the program it grabs that location and adds ot the end of it to access forlders that are in the main game folder.


    thx though for looking out for me.
    Style is overrated.

    - ₽ -

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. *.cpp and *.h files understanding
    By ElastoManiac in forum C++ Programming
    Replies: 4
    Last Post: 06-11-2006, 05:45 AM
  2. Linking header files, Source files and main program(Accel. C++)
    By Daniel Primed in forum C++ Programming
    Replies: 3
    Last Post: 01-17-2006, 11:46 AM
  3. Multiple Cpp Files
    By w4ck0z in forum C++ Programming
    Replies: 5
    Last Post: 11-14-2005, 02:41 PM
  4. Folding@Home Cboard team?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 398
    Last Post: 10-11-2005, 09:44 AM
  5. header and source files
    By gtriarhos in forum C Programming
    Replies: 3
    Last Post: 10-02-2005, 04:16 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21