mardi 23 août 2016

Prepend to WDL_String messing chars?

Hi all,

I'm try to easily prepend at the beginning of a WDL_String an additional text.
I've tried this code:

Code:

WDL_String test;
test.Set("Fake Sample.wav");
test.SetFormatted(WAVEPLAYER_PATH_LENGTH, "Error: %s", test.Get());
DBGMSG("test: %s", test.Get());

I'm attemping to get "test: Error: Fake Sample.wav". Instead it outputs "test: Error: Error: mple.wav".

Where am I wrong? I can't just prepend a text in this way? I need a support (temp) variable?

Thanks to everybody!


Prepend to WDL_String messing chars?

Aucun commentaire:

Enregistrer un commentaire