...

View Full Version : C++ File Paths



Serex
12-05-2004, 03:29 AM
Ok for example in php i can go



$fileName = "cursor.tga";
$imagePath = "data\\images\\" . $fileName;

// now for example in c++
ObjectManager::Instance().AddSprite($imagePath, 30, 29, 1, Vector3(0.0f, 0.0f, 0));


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



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));



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum