<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>paveway</author_name>
  <author_url>https://blog.hatena.ne.jp/paveway/</author_url>
  <blog_title>プログラムを書こう！</blog_title>
  <blog_url>https://www.paveway.info/</blog_url>
  <categories>
    <anon>C++/CLI</anon>
  </categories>
  <description>はじめに アンマネージコードと混在したプロジェクトで、String型の文字列をchar型に変換する必要がありました。 Stringクラスに変換用のメソッドがないか探しましたが見当たらないため、変換方法を調査しました。 変換方法 String型の文字列をchar型に変換するには、Marshal.StringToHGlobalAnsiメソッドを利用します。 Marshal.StringToHGlobalAnsiメソッドにより、String型の文字列がアンマネージのchar型のメモリに変換されます。 そのため使用後はMarshal.FreeHGlobalメソッドでアンマネージのchar型のメモリを解…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.paveway.info%2Fentry%2F2018%2F06%2F09%2Fcpp_cli_string_to_char&quot; title=&quot;C++/CLIでString型の文字列をchar型に変換する。 - プログラムを書こう！&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>https://cdn.user.blog.st-hatena.com/default_entry_og_image/152787833/1526825363332444</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-06-09 07:23:28</published>
  <title>C++/CLIでString型の文字列をchar型に変換する。</title>
  <type>rich</type>
  <url>https://www.paveway.info/entry/2018/06/09/cpp_cli_string_to_char</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
