CCFileUtils::fullPathFromRelativeFile -> call to non-static member function ...

Hi,

i want to use the path of a file in my project, for the xml parser… so i have to use

CCFileUtils::fullPathFromRelativeFile(“filename”) —> but when i implement this in my project, xcode says

Call to non-static member function without an object argument …

I dont know how to get this running :confused:

regards… :slight_smile:

schere00x

You need to use CCFileUtils::sharedFileUtils()->fullPathFromRelativeFile(“filename”) since API has been changed.

redaur redaur wrote:

You need to use CCFileUtils::sharedFileUtils()->fullPathFromRelativeFile(“filename”) since API has been changed.

omg . … i searched so long …

it works perfectly :slight_smile: … thanks! :wink: