{"id":359,"date":"2012-07-17T23:04:39","date_gmt":"2012-07-17T14:04:39","guid":{"rendered":"http:\/\/soundengine.jp\/wordpress\/tips\/?p=359"},"modified":"2014-02-06T23:42:36","modified_gmt":"2014-02-06T14:42:36","slug":"vc-%e9%85%8d%e5%88%97%e3%83%bb%e9%85%8d%e5%88%97%e3%82%aa%e3%83%96%e3%82%b8%e3%82%a7%e3%82%af%e3%83%88%e3%81%ae%e4%b8%8d%e6%ad%a3%e4%bd%8d%e7%bd%ae%e5%8f%82%e7%85%a7%e3%82%a8%e3%83%a9%e3%83%bc","status":"publish","type":"post","link":"https:\/\/soundengine.jp\/wordpress\/tips\/try\/359\/","title":{"rendered":"VC++ \u914d\u5217\u30fb\u914d\u5217\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4e0d\u6b63\u4f4d\u7f6e\u53c2\u7167\u30a8\u30e9\u30fc"},"content":{"rendered":"<h2 id=\"content_1_0\">\u53c2\u7167\u30a8\u30e9\u30fc  <a class=\"anchor_super\" id=\"d4873044\" href=\"http:\/\/soundengine.jp\/backend\/?services%2Ftips%2F2007-06-07%2F1#d4873044\" title=\"d4873044\"> <\/a><\/h2>\n<p>\u524d\u56de<a href=\"http:\/\/soundengine.jp\/wordpress\/tips\/?p=357\">\u914d\u5217\u30fb\u914d\u5217\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u53c2\u7167\u901f\u5ea6<\/a>\u306b\u3064\u3044\u3066\u5b9f\u9a13\u3057\u3066\u307f\u305f\u304c\u3001\u4eca\u56de\u306f\u3053\u308c\u3089\u3092\u5229\u7528\u3059\u308b\u6642\u306b\u3001<strong>\u4e0d\u6b63\u306a\u4f4d\u7f6e\u3092\u53c2\u7167<\/strong>\u3057\u305f\u5834\u5408<strong>\u3069\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc<\/strong>\u304c\u51fa\u308b\u304b\u306e\u5b9f\u9a13\u3092\u884c\u3063\u3066\u307f\u305f\u3002(\u5b9f\u9a13\u3067\u306f\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u3092\u57fa\u672c<strong>\/clr<\/strong>\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u884c\u3063\u3066\u3044\u308b\u3002)<\/p>\n<p><!--more--><\/p>\n<div class=\"jumpmenu\">\n<\/div>\n<h3 id=\"content_1_1\">MFC CArray  <a class=\"anchor_super\" id=\"fcfa4e05\" href=\"http:\/\/soundengine.jp\/backend\/?services%2Ftips%2F2007-06-07%2F1#fcfa4e05\" title=\"fcfa4e05\"> <\/a><\/h3>\n<p>Visual C++\u306e\u30e9\u30a4\u30d6\u30e9\u30ea<strong>MFC<\/strong>\u306e<strong>CArray<\/strong>\u3092\u4f7f\u3063\u3066\u5b9f\u9a13\u3002<\/p>\n<pre>CArray &lt; int &gt; a;\r\na[ 0 ] = 0;<\/pre>\n<blockquote>\n<p class=\"quotation\">ArrayTest.exe \u306e 0x7c812a5b \u3067\u521d\u56de\u306e\u4f8b\u5916\u304c\u767a\u751f\u3057\u307e\u3057\u305f: Microsoft C++ \u306e\u4f8b\u5916: CInvalidArgException (\u30e1\u30e2\u30ea\u306e\u5834\u6240 0x0012f044)\u3002<br \/>\n&#8216;System.Runtime.InteropServices.SEHException&#8217; \u306e\u521d\u56de\u4f8b\u5916\u304c ArrayTest.exe \u3067\u767a\u751f\u3057\u307e\u3057\u305f\u3002<br \/>\n&#8216;System.Runtime.InteropServices.SEHException&#8217; \u306e\u30cf\u30f3\u30c9\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u4f8b\u5916\u304c ArrayTest.exe \u3067\u767a\u751f\u3057\u307e\u3057\u305f\u3002<\/p>\n<\/blockquote>\n<p><strong>CInvalidArgException<\/strong>\u3068\u3044\u3046\u4f8b\u5916\u304c\u767a\u751f\u3059\u308b\u3088\u3046\u3060\u3002<\/p>\n<div class=\"jumpmenu\">\n<\/div>\n<h3 id=\"content_1_2\">ATL CAtlArray  <a class=\"anchor_super\" id=\"j8fe8e51\" href=\"http:\/\/soundengine.jp\/backend\/?services%2Ftips%2F2007-06-07%2F1#j8fe8e51\" title=\"j8fe8e51\"> <\/a><\/h3>\n<p>Visual C++\u306e\u30e9\u30a4\u30d6\u30e9\u30ea<strong>ATL<\/strong>\u306e<strong>CAtlArray<\/strong>\u3092\u4f7f\u3063\u3066\u5b9f\u9a13\u3002<\/p>\n<pre>CAtlArray &lt; int &gt; b;\r\nb[ 0 ] = 0;<\/pre>\n<blockquote>\n<p class=\"quotation\">ArrayTest.exe \u306e 0x7c812a5b \u3067\u521d\u56de\u306e\u4f8b\u5916\u304c\u767a\u751f\u3057\u307e\u3057\u305f: Microsoft C++ \u306e\u4f8b\u5916: COleException (\u30e1\u30e2\u30ea\u306e\u5834\u6240 0x0012f048)\u3002<br \/>\n&#8216;System.Runtime.InteropServices.SEHException&#8217; \u306e\u521d\u56de\u4f8b\u5916\u304c ArrayTest.exe \u3067\u767a\u751f\u3057\u307e\u3057\u305f\u3002<br \/>\n&#8216;System.Runtime.InteropServices.SEHException&#8217; \u306e\u30cf\u30f3\u30c9\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u4f8b\u5916\u304c ArrayTest.exe \u3067\u767a\u751f\u3057\u307e\u3057\u305f\u3002<\/p>\n<\/blockquote>\n<p><strong>COleException<\/strong>\u3068\u3044\u3046\u4f8b\u5916\u304c\u767a\u751f\u3059\u308b\u3088\u3046\u3060\u3002<\/p>\n<div class=\"jumpmenu\">\n<\/div>\n<h3 id=\"content_1_3\">stl vector  <a class=\"anchor_super\" id=\"bdf25a3c\" href=\"http:\/\/soundengine.jp\/backend\/?services%2Ftips%2F2007-06-07%2F1#bdf25a3c\" title=\"bdf25a3c\"> <\/a><\/h3>\n<p>\u6a19\u6e96C++\u306e\u30e9\u30a4\u30d6\u30e9\u30ea<strong>STL<\/strong>\u306e<strong>vector<\/strong>\u3092\u4f7f\u3063\u3066\u5b9f\u9a13\u3002<\/p>\n<pre>vector &lt; int &gt; c;\r\nc[ 0 ] = 0;<\/pre>\n<blockquote>\n<p class=\"quotation\">Microsoft Visual Studio C \u30e9\u30f3\u30bf\u30a4\u30e0 \u30e9\u30a4\u30d6\u30e9\u30ea\u306f ArrayTest.exe \u306b\u81f4\u547d\u7684\u306a\u30a8\u30e9\u30fc\u3092\u691c\u51fa\u3057\u307e\u3057\u305f\u3002<\/p>\n<\/blockquote>\n<p>\u3053\u308c\u4ee5\u5916\u306f\u7279\u306b\u30c7\u30d0\u30c3\u30b0\u306e\u51fa\u529b\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u306f\u8868\u793a\u3055\u308c\u306a\u304b\u3063\u305f\u3002<\/p>\n<div class=\"jumpmenu\">\n<\/div>\n<h3 id=\"content_1_4\">C++\/CLI \u914d\u5217  <a class=\"anchor_super\" id=\"we7ef83f\" href=\"http:\/\/soundengine.jp\/backend\/?services%2Ftips%2F2007-06-07%2F1#we7ef83f\" title=\"we7ef83f\"> <\/a><\/h3>\n<p>Visual C++\u306e<strong>C++\/CLI<\/strong>\u8a00\u8a9e\u3067\u5358\u306a\u308b<strong>\u914d\u5217<\/strong>\u3092\u4f7f\u3063\u3066\u5b9f\u9a13\u3002<\/p>\n<pre>int * d;\r\nd[ 0 ] = 0;<\/pre>\n<blockquote>\n<p class=\"quotation\">&#8216;System.NullReferenceException&#8217; \u306e\u521d\u56de\u4f8b\u5916\u304c ArrayTest.exe \u3067\u767a\u751f\u3057\u307e\u3057\u305f\u3002<br \/>\n&#8216;System.NullReferenceException&#8217; \u306e\u30cf\u30f3\u30c9\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u4f8b\u5916\u304c ArrayTest.exe \u3067\u767a\u751f\u3057\u307e\u3057\u305f\u3002<br \/>\n\u8ffd\u52a0\u60c5\u5831: \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u53c2\u7167\u304c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8 \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<\/blockquote>\n<p>\u3053\u306e\u3068\u304d\u30a6\u30a9\u30c3\u30c1\u3067d\u306e\u5024\u3092\u898b\u308b\u3068<strong>&lt;\u672a\u5b9a\u7fa9\u306e\u5024&gt;<\/strong>\u3068\u306a\u308b\u3002\u3061\u306a\u307f\u306b\u3001\u6b21\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u3082\u30b3\u30f3\u30d1\u30a4\u30eb\u306f\u901a\u308a\u3001\u5b9f\u884c\u3082\u3055\u308c\u308b\u3002\u7279\u306b<strong>\u30a8\u30e9\u30fc\u306f\u767a\u751f\u3057\u306a\u3044<\/strong>\u3002\u3068\u3044\u3046\u306e\u3082\u9006\u30a2\u30bb\u30f3\u30d6\u30eb\u3059\u308b\u3068\u308f\u304b\u308b\u304c\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u3053\u3053\u3089\u8fba\u306e\u30b3\u30fc\u30c9\u306f<strong>\u7701\u304b\u308c\u308b<\/strong>\u3088\u3046\u3060\u3002<\/p>\n<pre>int d[ 1 ];\r\nd[ 1 ] = 0;<\/pre>\n<p>\u3055\u3089\u306b\u3001\u5171\u901a\u8a00\u8a9e\u30e9\u30f3\u30bf\u30a4\u30e0 \u30b5\u30dd\u30fc\u30c8(\/clr)\u30aa\u30d7\u30b7\u30e7\u30f3\u3092<strong>\u306f\u305a\u3059<\/strong>\u3068<\/p>\n<blockquote>\n<p class=\"quotation\">ArrayTest.exe \u306e 0x00401cdd \u3067\u521d\u56de\u306e\u4f8b\u5916\u304c\u767a\u751f\u3057\u307e\u3057\u305f: 0xC0000005: \u5834\u6240 0xfffffffe \u306b\u66f8\u304d\u8fbc\u307f\u4e2d\u306b\u30a2\u30af\u30bb\u30b9\u9055\u53cd\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002<br \/>\nArrayTest.exe \u306e 0x00401cdd \u3067\u30cf\u30f3\u30c9\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u4f8b\u5916\u304c\u767a\u751f\u3057\u307e\u3057\u305f: 0xC0000005: \u5834\u6240 0xfffffffe \u306b\u66f8\u304d\u8fbc\u307f\u4e2d\u306b\u30a2\u30af\u30bb\u30b9\u9055\u53cd\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002<\/p>\n<\/blockquote>\n<p>\u3084<\/p>\n<blockquote>\n<p class=\"quotation\">ArrayTest.exe \u306e 0x0041d9f4 \u3067\u521d\u56de\u306e\u4f8b\u5916\u304c\u767a\u751f\u3057\u307e\u3057\u305f: 0xC0000005: \u5834\u6240 0x00000001 \u306b\u66f8\u304d\u8fbc\u307f\u4e2d\u306b\u30a2\u30af\u30bb\u30b9\u9055\u53cd\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002<br \/>\nArrayTest.exe \u306e 0x0041d9f4 \u3067\u30cf\u30f3\u30c9\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u4f8b\u5916\u304c\u767a\u751f\u3057\u307e\u3057\u305f: 0xC0000005: \u5834\u6240 0x00000001 \u306b\u66f8\u304d\u8fbc\u307f\u4e2d\u306b\u30a2\u30af\u30bb\u30b9\u9055\u53cd\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002<\/p>\n<\/blockquote>\n<p>\u3053\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u308a\u3059\u308b\u3002<\/p>\n<div class=\"jumpmenu\">\n<\/div>\n<h3 id=\"content_1_5\">C++\/CLI array  <a class=\"anchor_super\" id=\"k6c3d21f\" href=\"http:\/\/soundengine.jp\/backend\/?services%2Ftips%2F2007-06-07%2F1#k6c3d21f\" title=\"k6c3d21f\"> <\/a><\/h3>\n<p>Visual C++\u306e<strong>C++\/CLI<\/strong>\u3067\u306e<strong>array<\/strong>\u3092\u4f7f\u3063\u3066\u5b9f\u9a13\u3002<\/p>\n<pre>array &lt; int &gt; ^ f;\r\nf[ 0 ] = 0;<\/pre>\n<blockquote>\n<p class=\"quotation\">&#8216;System.NullReferenceException&#8217; \u306e\u521d\u56de\u4f8b\u5916\u304c ArrayTest.exe \u3067\u767a\u751f\u3057\u307e\u3057\u305f\u3002<br \/>\n&#8216;System.NullReferenceException&#8217; \u306e\u30cf\u30f3\u30c9\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u4f8b\u5916\u304c ArrayTest.exe \u3067\u767a\u751f\u3057\u307e\u3057\u305f\u3002<br \/>\n\u8ffd\u52a0\u60c5\u5831: \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u53c2\u7167\u304c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8 \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<\/blockquote>\n<p>\u3061\u306a\u307f\u306b<strong>\u5272\u308a\u5f53\u3066\u3066\u304b\u3089\u7bc4\u56f2\u5916<\/strong>\u3092\u53c2\u7167\u3059\u308b\u3068\u5148\u307b\u3069\u3068\u306f\u9055\u3046\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3002<\/p>\n<pre>array &lt; int &gt; ^ f = gcnew array &lt; int &gt; ( 1 );\r\nf[ 1 ] = 0;<\/pre>\n<blockquote>\n<p class=\"quotation\">&#8216;System.IndexOutOfRangeException&#8217; \u306e\u521d\u56de\u4f8b\u5916\u304c ArrayTest.exe \u3067\u767a\u751f\u3057\u307e\u3057\u305f\u3002<br \/>\n&#8216;System.IndexOutOfRangeException&#8217; \u306e\u30cf\u30f3\u30c9\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u4f8b\u5916\u304c ArrayTest.exe \u3067\u767a\u751f\u3057\u307e\u3057\u305f\u3002<br \/>\n\u8ffd\u52a0\u60c5\u5831: \u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u914d\u5217\u306e\u5883\u754c\u5916\u3067\u3059\u3002<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u53c2\u7167\u30a8\u30e9\u30fc \u524d\u56de\u914d\u5217\u30fb\u914d\u5217\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u53c2\u7167\u901f\u5ea6\u306b\u3064\u3044\u3066\u5b9f\u9a13\u3057\u3066\u307f\u305f\u304c\u3001\u4eca\u56de\u306f\u3053 &hellip; <a href=\"https:\/\/soundengine.jp\/wordpress\/tips\/try\/359\/\">\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-359","post","type-post","status-publish","format-standard","hentry","category-try"],"_links":{"self":[{"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/posts\/359","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=359"}],"version-history":[{"count":3,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/posts\/359\/revisions"}],"predecessor-version":[{"id":3307,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/posts\/359\/revisions\/3307"}],"wp:attachment":[{"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/media?parent=359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/categories?post=359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/soundengine.jp\/wordpress\/tips\/wp-json\/wp\/v2\/tags?post=359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}