M
Mike
Hi
this worked before and I've no clue why now this messes up the path.
(still compiles)
---------
string Texstr = filep;
string::size_type n = Texstr.find_last_of('/');
if(n == string::npos) XPLMDebugString("Texturefolder not found.
\n");
Texstr = Texstr.substr(0, n+1);
strcpy(TextureFileName, Texstr.c_str ());
strcat(TextureFileName, pFileName);
-------
filep is a path like: users/michael/bla/blyy
pFileName is a pointer alike: images/blue.png
and I need: users/michael/bla/images/blue.png
Many thanks
Michael
this worked before and I've no clue why now this messes up the path.
(still compiles)
---------
string Texstr = filep;
string::size_type n = Texstr.find_last_of('/');
if(n == string::npos) XPLMDebugString("Texturefolder not found.
\n");
Texstr = Texstr.substr(0, n+1);
strcpy(TextureFileName, Texstr.c_str ());
strcat(TextureFileName, pFileName);
-------
filep is a path like: users/michael/bla/blyy
pFileName is a pointer alike: images/blue.png
and I need: users/michael/bla/images/blue.png
Many thanks
Michael