I have a function that takes only one LPWSTR
as argument. However, I need to add integer to the end of it.
Here's an example pseudocode:
int theNumber = 5;
LPWSTR myLPWSTR = L"Number is: ";
/* Add theNumber to myLPWSTR */
myFunction(myLPWSTR);
How to do this?
I have already tried converting int
to LPWSTR
and then concatenate them but I didn't succeed. I've tried this for the whole morning but just can't figure out how to do this.
I've tried eg. wsprintf, _itow_s, c_str and pretty much everything I know of - but just can't do it and it's getting really frustrating.
Someone please help.