I'm trying to create a string that's composed with multiple parts. It starts as a normal string and at some point a function is called that fills a pointer with an hex number. Like shown below.
PVOID hexval = NULL;
PCTSTR mystring = TEXT("BLA");
function(&hexval);
mystring += hexval; // just an idea of what I want, not actual code
As shown above I want mystring
to have the hexvalue
appended to it. Assume my hexvalue
is 0x424C41
. I want to end with mystring
being "BLABLA".
What's the best way to do this?