Original Post
I am trying to append the low and high byte values into a sting being build by _bstr_t
but .... I just dont understand how to do it...
Here''s a sample of my tiny function: Thanks
BSTR oneEntity()
{ // easy one - straight ascii
//_bstr_t bstr1(_T("</body></html>"));
// goal - insert unicode value between body tags for BSTR
byte hibyte = 03;
byte lowbyte = 136; // OCTAL 136 = DEC 94; goal unicode 916 ( small delta ).
//wchar_t* s3=lowbyte + hibyte; // this does not work either...
_bstr_t bstr2(_T(""));
bstr2+= lowbyte + hibyte; // // APPEND BYTES how ???
_bstr_t bstr3(_T("</body></html>"));
bstr2+= bstr3; // concatenate this to end.
// unicode</body></html>
BSTR bstrHTML;
bstrHTML = bstr2.copy();
return bstrHTML;
}
andrew