<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>wata_d</author_name>
  <author_url>https://blog.hatena.ne.jp/wata_d/</author_url>
  <blog_title>閑古鳥</blog_title>
  <blog_url>https://www.little-cuckoo.jp/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>開発</anon>
  </categories>
  <description>32ビット環境ではSetWindowLongPtrはSetWindowLongのエイリアスになります。それとは別に、VCのデフォルトでは /Wp64 オプションが有効になっています。これは64ビットOSへの移植性が損なわれる場合に警告を出すと言うもので、 void* p = &amp;p; unsigned long i = (unsigned long)p; // C4311 上記のようなキャストをする際に警告(C4311)を出してくれるというもの。64ビット環境ではポインタは64ビットになるので、32ビットのlong型にキャストするのはまずいよ、と言ってくれます。どちらもそれだけで見ればどうという…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.little-cuckoo.jp%2Fentry%2F20071016%2F1192519595&quot; title=&quot;VCでSetWindowLongPtrを使用したときの警告の対処法 - 閑古鳥&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>2007-10-16 16:26:35</published>
  <title>VCでSetWindowLongPtrを使用したときの警告の対処法</title>
  <type>rich</type>
  <url>https://www.little-cuckoo.jp/entry/20071016/1192519595</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
