Thread: Basic file io
View Single Post
Old 04-07-2017, 05:57 PM   #13
Human being with feelings
nofish's Avatar
Join Date: Oct 2007
Location: home is where the heart is
Posts: 9,284

I have to read up on both strcat (what I was actually looking for I guess) and snprintf, but it works now, thanks !

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 ?

Too tired for thinking currently, will revisit it tomorrow. Anyway, I appreciate the help, thanks again.

Last edited by nofish; 04-07-2017 at 06:09 PM.
nofish is offline   Reply With Quote