Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1

Thread: C++ File Paths

  1. #1
    Regular Coder
    Join Date
    Mar 2004
    Location
    Australia
    Posts
    217
    Thanks
    0
    Thanked 1 Time in 1 Post

    C++ File Paths

    Ok for example in php i can go

    PHP Code:
    $fileName "cursor.tga"
    $imagePath "data\\images\\" $fileName

    // now for example in c++
    ObjectManager::Instance().AddSprite($imagePath30291Vector3(0.0f0.0f0)); 
    is there anyway of doing such a thing in php? im looking for a way to use of and ifstream to output the file name and path to a txtfile for to allow people to change vars if they wana play around.

    thanks

    edit: got it. if you need

    Code:
    sFileName = "cursor.tga";
    sFilePath = "data\\images\\cursors\\";
    sFullName = sFilePath + sFileName;
    
    // now for example in c++
    ObjectManager::Instance().AddSprite(sFullName.c_str(), 30, 29, 1, Vector3(0.0f, 0.0f, 0));
    Last edited by Serex; 12-05-2004 at 02:21 PM.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •