{"id":289,"date":"2012-07-09T16:33:30","date_gmt":"2012-07-09T07:33:30","guid":{"rendered":"http:\/\/soundengine.jp\/wordpress\/tips\/?p=289"},"modified":"2014-02-06T23:42:37","modified_gmt":"2014-02-06T14:42:37","slug":"visual-studio-20052008-catlarray%e3%81%ae%e4%b8%ad%e8%ba%ab%e8%a1%a8%e7%a4%ba","status":"publish","type":"post","link":"https:\/\/soundengine.jp\/wordpress\/tips\/try\/289\/","title":{"rendered":"Visual Studio 2005\/2008 CAtlArray\u306e\u4e2d\u8eab\u8868\u793a"},"content":{"rendered":"<h2 id=\"content_1_0\">\u30a6\u30a9\u30c3\u30c1  <a class=\"anchor_super\" id=\"l2810d18\" href=\"http:\/\/soundengine.jp\/backend\/?services%2Ftips%2F2007-05-13#l2810d18\" title=\"l2810d18\"> <\/a><\/h2>\n<p>Visual Studio 2005(Visual C++ 8.0)\u30012008(Visual C++ 9.0)\u3067\u5909\u6570\u306e\u4e2d\u8eab\u3092\u898b\u308b\u305f\u3081\u306e\u30c7\u30d0\u30c3\u30b0\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u30a6\u30aa\u30c3\u30c1\u304c\u3042\u308b\u3002\u3053\u306e\u30a6\u30aa\u30c3\u30c1\u3092\u4f7f\u3063\u3066\u3044\u308b\u3068\u3001vector\u3092\u4f7f\u3063\u305f\u3068\u304d\u52dd\u624b\u306b\u4e2d\u8eab\u304c\u5c55\u958b\u3055\u308c\u308b\u3053\u3068\u306b\u6c17\u3065\u304f\u3002(\u81ea\u52d5\u5909\u6570\u3001\u30ed\u30fc\u30ab\u30eb\u3067\u3082)<\/p>\n<p><!--more--><\/p>\n<p>\u3053\u308c\u3089\u306e\u5c55\u958b\u5185\u5bb9\u306f\u3001autoexp.dat\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u306b\u8a18\u8ff0\u3059\u308b\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u3063\u3066\u3044\u308b\u3002MSDN\u306e\u65b9\u3067\u3082<a href=\"http:\/\/msdn2.microsoft.com\/ja-jp\/library\/zf0e8s14%28VS.80%29.aspx\" rel=\"nofollow\">\u30ab\u30b9\u30bf\u30e0 \u30c7\u30fc\u30bf\u578b\u306e\u8868\u793a<\/a>\u3068\u3044\u3046\u9805\u76ee\u3067\u3001(\u4ee5\u4e0b\u53c2\u7167)<\/p>\n<blockquote>\n<p class=\"quotation\">\u30cd\u30a4\u30c6\u30a3\u30d6 \u30b3\u30fc\u30c9\u306e\u5834\u5408\u3001\u30ab\u30b9\u30bf\u30e0 \u30c7\u30fc\u30bf\u578b\u306e\u5c55\u958b\u3092 autoexp.dat \u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002autoexp.dat \u306f\u3001VC++8.0\u306e\u5834\u5408\u300cProgram Files\\Microsoft Visual Studio 8\\Common7\\Packages\\Debugger\u300d\u30d5\u30a9\u30eb\u30c0VC++9.0\u306e\u5834\u5408\u300cProgram Files\\Microsoft Visual Studio 9.0\\Common7\\Packages\\Debugger\u300d\u306b\u3042\u308a\u307e\u3059\u3002autoexp\u898f\u5247\u306e\u8a18\u8ff0\u624b\u9806\u306f\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<\/blockquote>\n<div class=\"jumpmenu\">\n<\/div>\n<h2 id=\"content_1_1\">CAtlArray  <a class=\"anchor_super\" id=\"l026deb4\" href=\"http:\/\/soundengine.jp\/backend\/?services%2Ftips%2F2007-05-13#l026deb4\" title=\"l026deb4\"> <\/a><\/h2>\n<p>\u3053\u306e\u30af\u30e9\u30b9\u306f\u3001ATL\u306b\u304a\u3051\u308b\u914d\u5217\u5b9f\u88c5\u30af\u30e9\u30b9\u3067\u3042\u308avector\u3084CArray\u306a\u3069\u3068\u540c\u69d8\u306a\u611f\u3058\u3067\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u3002\u6a19\u6e96\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4e2d\u8eab\u3092\u5165\u308c\u3066\u3082\u5c55\u958b\u3055\u308c\u306a\u3044\u305f\u3081\u3001\u305d\u306e\u3064\u3069m_pData,10\u306a\u3069\u3068\u66f8\u3044\u305f\u308a\u3057\u3066\u5c55\u958b\u3057\u306a\u304f\u3066\u306f\u306a\u3089\u306a\u3044\u3002<\/p>\n<pre>- {m_pData=0x003a9fb8 m_nSize=5 m_nMaxSize=5 ...}\r\n  ATL::CAtlArray&lt;int,ATL::CElementTraits&lt;int&gt; &gt;\r\n+ m_pData\t0x003a9fb8\tint *\r\n  m_nSize\t5\tunsigned int\r\n  m_nMaxSize\t5\tunsigned int\r\n  m_nGrowBy\t0\tint<\/pre>\n<div class=\"jumpmenu\">\n<\/div>\n<h3 id=\"content_1_2\">autoexp.dat  <a class=\"anchor_super\" id=\"bd7a39c7\" href=\"http:\/\/soundengine.jp\/backend\/?services%2Ftips%2F2007-05-13#bd7a39c7\" title=\"bd7a39c7\"> <\/a><\/h3>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u8ffd\u52a0\u3057\u3066\u307f\u305f\u3002<\/p>\n<pre>ATL::CAtlArray&lt;*&gt;{\r\n\tchildren\r\n\t(\r\n\t    #array\r\n\t    (\r\n\t\t\texpr :\t($c.m_pData)[$i],  \r\n\t\t\tsize :\t$c.m_nSize\r\n\t\t)\r\n\t)\r\n\t\r\n    preview\r\n    ( \r\n        #( \r\n\t\t\t\"[\", \r\n            $e.m_nSize , \r\n            \"](\", \r\n            \r\n            #array\r\n            (\r\n\t\t\t\texpr : \t($c.m_pData)[$i],  \r\n\t\t\t\tsize : \t$c.m_nSize\r\n\t\t\t), \r\n\t\t\t\")\"\r\n\t\t)\r\n\t)\r\n}<\/pre>\n<p>\u5165\u308c\u308b\u5834\u6240\u306f\u3001\u307e\u3060\u3088\u304f\u308f\u304b\u3063\u3066\u3044\u306a\u3044\u304c\u3001[Visualizer]\u30bf\u30b0\u306e\u4e0b\u306b\u5165\u308c\u3066\u3044\u308b\u3002\u3068\u308a\u3042\u3048\u305a\u3053\u306e\u3088\u3046\u306b\u66f8\u304f\u3060\u3051\u3067\u3046\u307e\u304f\u5c55\u958b\u3057\u3066\u304f\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/p>\n<div class=\"img_margin\" style=\"text-align: left\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/soundengine.jp\/backend\/?plugin=ref&amp;page=services%2Ftips%2F2007-05-13&amp;src=tenkai.gif\" alt=\"tenkai.gif\" height=\"183\" width=\"514\"><\/div>\n<p>CAutoPtrArray\u306e\u4e2d\u8eab\u3092\u30a6\u30a9\u30c3\u30c1\u306b\u51fa\u3059\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"http:\/\/soundengine.jp\/wordpress\/tips\/2012\/07\/09\/visual-studio-20052008-%e3%82%a6%e3%82%aa%e3%83%83%e3%83%81%e3%81%abcautoptrarray%e3%81%ae%e4%b8%ad%e8%ba%ab%e8%a1%a8%e7%a4%ba\/\">\u3053\u3061\u3089<\/a>\u3067\u3002CAtlList\u306e\u4e2d\u8eab\u3092\u30a6\u30a9\u30c3\u30c1\u306b\u51fa\u3059\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"http:\/\/soundengine.jp\/wordpress\/tips\/2012\/10\/26\/visual-studio-2008-%e3%82%a6%e3%82%aa%e3%83%83%e3%83%81%e3%81%abcatllist%e3%81%ae%e4%b8%ad%e8%ba%ab%e8%a1%a8%e7%a4%ba\/\">\u3053\u3061\u3089<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30a6\u30a9\u30c3\u30c1 Visual Studio 2005(Visual C++ 8.0)\u3001 &hellip; <a href=\"https:\/\/soundengine.jp\/wordpress\/tips\/try\/289\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-289","post","type-post","status-publish","format-standard","hentry","category-try"],"_links":{"self":[{"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/posts\/289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/comments?post=289"}],"version-history":[{"count":6,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/posts\/289\/revisions"}],"predecessor-version":[{"id":3334,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/posts\/289\/revisions\/3334"}],"wp:attachment":[{"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/media?parent=289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/categories?post=289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/tags?post=289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}