1. SomeStringClass amount = Window->get_text(); 2. wchar_t strAmount[100] = L"Amount: "; // I know I could remove 100 from here too 3. wchar_t *ptr = wcscat( strAmount, amount.c_str() ); 4. SomeStringClass finalStr; 5. finalStr.set(ptr, 10 /* 10 is roughly due to length of Amount line 2*/ + amount.length());
amount
Window->get_text()
SomeStringClass amount = Window->get_text(); wchar_t strAmount[100]; int swprintf(strAmount, L"Amount: %s", amount);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)