using functions from different files

need some help...

i have a .h file (related to a certain .cpp) containing

inline string GetPathToFolder() {return myFile->GetPath();}

this file works so the function is supposed to be correct. don't know where is GetPath(), the code is not mine but it works, i'm just trying to modify it a bit.

i want to use this function (GetPathToFolder) in another .cpp, how should i call it? shall i include the .h file on the header?

thnx!
If you need to call GetPathToFolder from a cpp file, include the header in which GetPathToFolder is defined and call it as usual.
Topic archived. No new replies allowed.