{"author_name":"shikaku","type":"rich","description":"// BSTR to C String BSTR bstrStart; bstrStart = GetBSTR(); TCHAR szFinal[255]; // direct conversion from BSTR to LPCTSTR only works // in Unicode _stprintf(szFinal, _T(\"%s\"), (LPCTSTR)bstrStart); AfxMessageBox(szFinal); _bstr_t bstrIntermediate(bstrStart); // convert to // _bstr_t CString strFinal; \u2026","provider_name":"Hatena Blog","version":"1.0","author_url":"https://blog.hatena.ne.jp/shikaku/","title":"BSTR\u304b\u3089C\u6587\u5b57\u5217\u3078\u306e\u5909\u63db","url":"https://blog.systemjp.net/entry/2013/12/05/172011","published":"2013-12-05 17:20:11","provider_url":"https://hatena.blog","height":"190","width":"100%","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.systemjp.net%2Fentry%2F2013%2F12%2F05%2F172011\" title=\"BSTR\u304b\u3089C\u6587\u5b57\u5217\u3078\u306e\u5909\u63db - shikaku&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://blog.systemjp.net/","blog_title":"shikaku's blog","categories":["VC","COM"]}