I have to read up on both strcat (what I was actually looking for I guess) and snprintf, but it works now, thanks !
Quote:
Please try to avoid using raw C strings in C++ code if in any way possible...Pretty much anything available in C++ will be better than that. WDL_String would be worth looking into in WDL/SWS context. (If you have other functions/classes that want raw C strings as arguments, WDL_String has the Get() method to get the raw char* C string buffer.)
|
Ok, but let's take GetResourcePath() as example, it returns a pointer to a C string (as I gather), how could I avoid using C strings there ?
edit:
Too tired for thinking currently, will revisit it tomorrow. Anyway, I appreciate the help, thanks again.