<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sirocco</author_name>
  <author_url>https://blog.hatena.ne.jp/sirocco/</author_url>
  <blog_title>sirocco の書いてもすぐに忘れるメモ</blog_title>
  <blog_url>https://sirocco.hatenadiary.org/</blog_url>
  <categories>
    <anon>MinGW</anon>
    <anon>Haskell</anon>
    <anon>MS-Windows</anon>
  </categories>
  <description>Haskell から COM を呼ぶ場合 HaskellからSJISに変換した後に MultiByteToWideChar、 WideCharToMultiByteを使用していましたが、Haskell はUcs4、COMはUTF16を使っていて、日本語で使う分には文字コードを変換しなくても良いはずです。 そこで、WideCharToMultiByteを使用しないでBSTRを作るために以下のサイトを参考にchar wchar_t BSTR 文字変換テストをしてみました。 C言語 マルチバイト文字列からワイド文字列に変換 C言語 ワイド文字列からマルチバイト文字列に変換 /* gcc mbs.c …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsirocco.hatenadiary.org%2Fentry%2F20121106%2F1352153313&quot; title=&quot;char   wchar_t  BSTR 文字変換テスト - sirocco の書いてもすぐに忘れるメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-11-06 07:08:33</published>
  <title>char   wchar_t  BSTR 文字変換テスト</title>
  <type>rich</type>
  <url>https://sirocco.hatenadiary.org/entry/20121106/1352153313</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
