[{"data":1,"prerenderedAt":675},["ShallowReactive",2],{"content-query-Mds1mZPwNi":3,"navigation":327},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"body":11,"_type":320,"_id":321,"_source":322,"_file":323,"_stem":324,"_extension":325,"sitemap":326},"/document/troubleshooting/fix-pinvoke-exception","troubleshooting",false,"","PInvoke例外の修正","セルの編集を開始する際にPInvoke例外が発生する場合があります。この問題はバージョン0.8.5.1で修正されました。開発環境でこの問題を修正するには、以下の手順に従ってください。","2014-10-01",{"type":12,"children":13,"toc":317},"root",[14,21,311],{"type":15,"tag":16,"props":17,"children":18},"element","p",{},[19],{"type":20,"value":9},"text",{"type":15,"tag":22,"props":23,"children":24},"ol",{},[25,31,45,162,263,306],{"type":15,"tag":26,"props":27,"children":28},"li",{},[29],{"type":20,"value":30},"ReoGridプロジェクトを開きます。",{"type":15,"tag":26,"props":32,"children":33},{},[34,36,43],{"type":20,"value":35},"ソースファイル",{"type":15,"tag":37,"props":38,"children":40},"code",{"className":39},[],[41],{"type":20,"value":42},"Common/Win32.cs",{"type":20,"value":44},"を開きます。",{"type":15,"tag":26,"props":46,"children":47},{},[48,54,56],{"type":15,"tag":37,"props":49,"children":51},{"className":50},[],[52],{"type":20,"value":53},"SendMessage",{"type":20,"value":55},"メソッドの定義を見つけます：",{"type":15,"tag":57,"props":58,"children":62},"pre",{"className":59,"code":60,"language":61,"meta":7,"style":7},"language-cs shiki shiki-themes github-light github-dark github-light","public static extern int SendMessage(IntPtr hWnd, uint Msg, long wParam, long lParam);\n","cs",[63],{"type":15,"tag":37,"props":64,"children":65},{"__ignoreMap":7},[66],{"type":15,"tag":67,"props":68,"children":71},"span",{"class":69,"line":70},"line",1,[72,78,83,88,93,99,105,110,115,120,125,130,134,139,144,148,152,157],{"type":15,"tag":67,"props":73,"children":75},{"style":74},"--shiki-light:#D73A49;--shiki-dark:#F97583;--shiki-default:#D73A49",[76],{"type":20,"value":77},"public",{"type":15,"tag":67,"props":79,"children":80},{"style":74},[81],{"type":20,"value":82}," static",{"type":15,"tag":67,"props":84,"children":85},{"style":74},[86],{"type":20,"value":87}," extern",{"type":15,"tag":67,"props":89,"children":90},{"style":74},[91],{"type":20,"value":92}," int",{"type":15,"tag":67,"props":94,"children":96},{"style":95},"--shiki-light:#6F42C1;--shiki-dark:#B392F0;--shiki-default:#6F42C1",[97],{"type":20,"value":98}," SendMessage",{"type":15,"tag":67,"props":100,"children":102},{"style":101},"--shiki-light:#24292E;--shiki-dark:#E1E4E8;--shiki-default:#24292E",[103],{"type":20,"value":104},"(",{"type":15,"tag":67,"props":106,"children":107},{"style":95},[108],{"type":20,"value":109},"IntPtr",{"type":15,"tag":67,"props":111,"children":112},{"style":95},[113],{"type":20,"value":114}," hWnd",{"type":15,"tag":67,"props":116,"children":117},{"style":101},[118],{"type":20,"value":119},", ",{"type":15,"tag":67,"props":121,"children":122},{"style":74},[123],{"type":20,"value":124},"uint",{"type":15,"tag":67,"props":126,"children":127},{"style":95},[128],{"type":20,"value":129}," Msg",{"type":15,"tag":67,"props":131,"children":132},{"style":101},[133],{"type":20,"value":119},{"type":15,"tag":67,"props":135,"children":136},{"style":74},[137],{"type":20,"value":138},"long",{"type":15,"tag":67,"props":140,"children":141},{"style":95},[142],{"type":20,"value":143}," wParam",{"type":15,"tag":67,"props":145,"children":146},{"style":101},[147],{"type":20,"value":119},{"type":15,"tag":67,"props":149,"children":150},{"style":74},[151],{"type":20,"value":138},{"type":15,"tag":67,"props":153,"children":154},{"style":95},[155],{"type":20,"value":156}," lParam",{"type":15,"tag":67,"props":158,"children":159},{"style":101},[160],{"type":20,"value":161},");\n",{"type":15,"tag":26,"props":163,"children":164},{},[165,167,172,174,179,181],{"type":20,"value":166},"最後の2つのパラメータの型を",{"type":15,"tag":37,"props":168,"children":170},{"className":169},[],[171],{"type":20,"value":138},{"type":20,"value":173},"から",{"type":15,"tag":37,"props":175,"children":177},{"className":176},[],[178],{"type":20,"value":109},{"type":20,"value":180},"に変更します。以下のようになります：",{"type":15,"tag":57,"props":182,"children":184},{"className":59,"code":183,"language":61,"meta":7,"style":7},"public static extern int SendMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam);\n",[185],{"type":15,"tag":37,"props":186,"children":187},{"__ignoreMap":7},[188],{"type":15,"tag":67,"props":189,"children":190},{"class":69,"line":70},[191,195,199,203,207,211,215,219,223,227,231,235,239,243,247,251,255,259],{"type":15,"tag":67,"props":192,"children":193},{"style":74},[194],{"type":20,"value":77},{"type":15,"tag":67,"props":196,"children":197},{"style":74},[198],{"type":20,"value":82},{"type":15,"tag":67,"props":200,"children":201},{"style":74},[202],{"type":20,"value":87},{"type":15,"tag":67,"props":204,"children":205},{"style":74},[206],{"type":20,"value":92},{"type":15,"tag":67,"props":208,"children":209},{"style":95},[210],{"type":20,"value":98},{"type":15,"tag":67,"props":212,"children":213},{"style":101},[214],{"type":20,"value":104},{"type":15,"tag":67,"props":216,"children":217},{"style":95},[218],{"type":20,"value":109},{"type":15,"tag":67,"props":220,"children":221},{"style":95},[222],{"type":20,"value":114},{"type":15,"tag":67,"props":224,"children":225},{"style":101},[226],{"type":20,"value":119},{"type":15,"tag":67,"props":228,"children":229},{"style":74},[230],{"type":20,"value":124},{"type":15,"tag":67,"props":232,"children":233},{"style":95},[234],{"type":20,"value":129},{"type":15,"tag":67,"props":236,"children":237},{"style":101},[238],{"type":20,"value":119},{"type":15,"tag":67,"props":240,"children":241},{"style":95},[242],{"type":20,"value":109},{"type":15,"tag":67,"props":244,"children":245},{"style":95},[246],{"type":20,"value":143},{"type":15,"tag":67,"props":248,"children":249},{"style":101},[250],{"type":20,"value":119},{"type":15,"tag":67,"props":252,"children":253},{"style":95},[254],{"type":20,"value":109},{"type":15,"tag":67,"props":256,"children":257},{"style":95},[258],{"type":20,"value":156},{"type":15,"tag":67,"props":260,"children":261},{"style":101},[262],{"type":20,"value":161},{"type":15,"tag":26,"props":264,"children":265},{},[266,272,274,279,281],{"type":15,"tag":37,"props":267,"children":269},{"className":268},[],[270],{"type":20,"value":271},"ReoGridControl.cs",{"type":20,"value":273},"内の",{"type":15,"tag":37,"props":275,"children":277},{"className":276},[],[278],{"type":20,"value":53},{"type":20,"value":280},"メソッドの呼び出し元を見つけ、引数を以下のように変更します：",{"type":15,"tag":57,"props":282,"children":284},{"className":59,"code":283,"language":61,"meta":7,"style":7},"new IntPtr(value)\n",[285],{"type":15,"tag":37,"props":286,"children":287},{"__ignoreMap":7},[288],{"type":15,"tag":67,"props":289,"children":290},{"class":69,"line":70},[291,296,301],{"type":15,"tag":67,"props":292,"children":293},{"style":74},[294],{"type":20,"value":295},"new",{"type":15,"tag":67,"props":297,"children":298},{"style":95},[299],{"type":20,"value":300}," IntPtr",{"type":15,"tag":67,"props":302,"children":303},{"style":101},[304],{"type":20,"value":305},"(value)\n",{"type":15,"tag":26,"props":307,"children":308},{},[309],{"type":20,"value":310},"再ビルドして完了です。",{"type":15,"tag":312,"props":313,"children":314},"style",{},[315],{"type":20,"value":316},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":7,"searchDepth":318,"depth":318,"links":319},2,[],"markdown","content:document:17.troubleshooting:2.fix-pinvoke-exception.md","content","document/17.troubleshooting/2.fix-pinvoke-exception.md","document/17.troubleshooting/2.fix-pinvoke-exception","md",{"loc":4},[328,651,654,657,660,663,666,669,672],{"title":329,"_path":330,"children":331},"Document","/document",[332,343,348,380,397,426,458,478,492,515,526,542,565,576,596,616,645],{"title":333,"_path":334,"children":335},"はじめに","/document/getting-started",[336,337,340],{"title":333,"_path":334},{"title":338,"_path":339},"インストール","/document/getting-started/installation",{"title":341,"_path":342},"V3 から V4 への移行ガイド","/document/getting-started/migrate-from-v3",{"title":344,"_path":345,"children":346},"ワークブック","/document/workbook",[347],{"title":344,"_path":345},{"title":349,"_path":350,"children":351},"ワークシート","/document/worksheet",[352,353,356,359,362,365,368,371,374,377],{"title":349,"_path":350},{"title":354,"_path":355},"行、列、ヘッダー","/document/worksheet/row-and-column",{"title":357,"_path":358},"範囲","/document/worksheet/range",{"title":360,"_path":361},"名前付き範囲","/document/worksheet/named-range",{"title":363,"_path":364},"セルの結合と解除","/document/worksheet/merge-and-unmerge",{"title":366,"_path":367},"パーシャルグリッド","/document/worksheet/partial-grid",{"title":369,"_path":370},"複数行ヘッダー","/document/worksheet/multiple-row-header",{"title":372,"_path":373},"ウィンドウ枠の固定","/document/worksheet/freeze",{"title":375,"_path":376},"ズーム","/document/worksheet/zoom",{"title":378,"_path":379},"設定とオプション","/document/worksheet/settings",{"title":381,"_path":382,"children":383},"選択とナビゲーション","/document/selection",[384,385,388,391,394],{"title":381,"_path":382},{"title":386,"_path":387},"フォーカスと選択","/document/selection/selection",{"title":389,"_path":390},"範囲の選択","/document/selection/pick-range",{"title":392,"_path":393},"クリップボード","/document/selection/clipboard",{"title":395,"_path":396},"テキスト検索","/document/selection/text-search",{"title":398,"_path":399,"children":400},"データ管理","/document/data",[401,402,405,408,411,414,417,420,423],{"title":398,"_path":399},{"title":403,"_path":404},"データソース","/document/data/datasource",{"title":406,"_path":407},"データフィルタリング","/document/data/data-filtering",{"title":409,"_path":410},"組み込みオートフィルター","/document/data/builtin-autofilter",{"title":412,"_path":413},"条件付きフィルター","/document/data/conditional-filter",{"title":415,"_path":416},"条件付きスタイル","/document/data/conditional-styles",{"title":418,"_path":419},"グループとアウトライン","/document/data/group-and-outline",{"title":421,"_path":422},"データバリデーション","/document/data/data-validation",{"title":424,"_path":425},"保護とロック","/document/data/protection",{"title":427,"_path":428,"children":429},"セル","/document/cell",[430,431,434,437,440,443,446,449,452,455],{"title":427,"_path":428},{"title":432,"_path":433},"セルの編集","/document/cell/cell-edit",{"title":435,"_path":436},"スタイル","/document/cell/style",{"title":438,"_path":439},"罫線","/document/cell/border",{"title":441,"_path":442},"データ書式","/document/cell/data-format",{"title":444,"_path":445},"カスタムデータフォーマッター","/document/cell/custom-data-formatter",{"title":447,"_path":448},"データ連続入力","/document/cell/auto-fill",{"title":450,"_path":451},"リッチフォーマットテキスト","/document/cell/rich-format-text",{"title":453,"_path":454},"セルテキストの回転","/document/cell/rotate-cell-text",{"title":456,"_path":457},"セルの反復処理","/document/cell/iterate-cells",{"title":459,"_path":460,"children":461},"セルタイプ","/document/cell-types",[462,463,466,469,472,475],{"title":459,"_path":460},{"title":464,"_path":465},"組み込みセルタイプ","/document/cell-types/built-in-cell-types",{"title":467,"_path":468},"カスタムセル","/document/cell-types/custom-cell",{"title":470,"_path":471},"ドロップダウンリストセル","/document/cell-types/dropdown-list-cell",{"title":473,"_path":474},"コンボリストセル","/document/cell-types/combo-list-cell",{"title":476,"_path":477},"列全体のセルタイプ","/document/cell-types/cells-type-for-entire-column",{"title":479,"_path":480,"children":481},"数式","/document/formula",[482,483,486,489],{"title":479,"_path":480},{"title":484,"_path":485},"カスタム関数","/document/formula/custom-function",{"title":487,"_path":488},"数式関数","/document/formula/formula-functions",{"title":490,"_path":491},"VLOOKUP","/document/formula/vlookup",{"title":493,"_path":494,"children":495},"チャート","/document/chart",[496,497,500,503,506,509,512],{"title":493,"_path":494},{"title":498,"_path":499},"縦棒グラフ","/document/chart/column-chart",{"title":501,"_path":502},"横棒グラフ","/document/chart/bar-chart",{"title":504,"_path":505},"折れ線グラフ","/document/chart/line-chart",{"title":507,"_path":508},"面グラフ","/document/chart/area-chart",{"title":510,"_path":511},"2D円グラフ","/document/chart/pie-2d-chart",{"title":513,"_path":514},"ドーナツグラフ","/document/chart/doughnut-chart",{"title":516,"_path":517,"children":518},"フローティングオブジェクト","/document/floating",[519,520,523],{"title":516,"_path":517},{"title":521,"_path":522},"描画シェイプ","/document/floating/drawing-shapes",{"title":524,"_path":525},"フローティング画像","/document/floating/floating-image",{"title":527,"_path":528,"children":529},"イベント","/document/events",[530,531,533,536,539],{"title":527,"_path":528},{"title":527,"_path":532},"/document/events/events",{"title":534,"_path":535},"キーボードイベント","/document/events/keyboard-events",{"title":537,"_path":538},"マウスイベント","/document/events/mouse-events",{"title":540,"_path":541},"SelectionRangeChanged","/document/events/selection-events",{"title":543,"_path":544,"children":545},"カスタマイズ","/document/customization",[546,547,550,553,556,559,562],{"title":543,"_path":544},{"title":548,"_path":549},"コントロールの外観","/document/customization/control-appearance",{"title":551,"_path":552},"シートタブコントロール","/document/customization/sheet-tab-control",{"title":554,"_path":555},"使用可能なホットキー","/document/customization/hot-keys",{"title":557,"_path":558},"言語ローカライズ","/document/customization/language-localization",{"title":560,"_path":561},"アドレスバーと数式バー","/document/customization/formula-bar",{"title":563,"_path":564},"ReoGridEditor","/document/customization/editor",{"title":566,"_path":567,"children":568},"アクション","/document/actions",[569,570,573],{"title":566,"_path":567},{"title":571,"_path":572},"ReoGridアクションフレームワーク","/document/actions/actions",{"title":574,"_path":575},"組み込みワークシートアクション","/document/actions/built-in-actions",{"title":577,"_path":578,"children":579},"ファイル形式","/document/io",[580,581,584,587,590,593],{"title":577,"_path":578},{"title":582,"_path":583},"Excelファイル形式 (xlsx)","/document/io/excel-file-format",{"title":585,"_path":586},"CSV形式","/document/io/csv-format",{"title":588,"_path":589},"RGF形式","/document/io/rgf-format",{"title":591,"_path":592},"Excel形式とRGF形式の違い","/document/io/difference-between-excel-and-rgf-format",{"title":594,"_path":595},"HTMLとしてエクスポート","/document/io/export-as-html",{"title":597,"_path":598,"children":599},"高度な機能","/document/advanced",[600,601,604,607,610,613],{"title":597,"_path":598},{"title":602,"_path":603},"メモリワークブック","/document/advanced/memory-workbook",{"title":605,"_path":606},"ページングと印刷","/document/advanced/paging-and-print",{"title":608,"_path":609},"コントロールのリセット","/document/advanced/reset-control",{"title":611,"_path":612},"パフォーマンス","/document/advanced/performance",{"title":614,"_path":615},"設定","/document/advanced/settings",{"title":617,"_path":618,"children":619},"ハウツーガイド","/document/how-to",[620,621,624,627,630,633,636,639,642],{"title":617,"_path":618},{"title":622,"_path":623},"ReoGridの推奨プラクティス","/document/how-to/recommended-practice-for-using-reogrid",{"title":625,"_path":626},"DataTableでスプレッドシートを埋める","/document/how-to/fill-grid-with-datatable",{"title":628,"_path":629},"遅延読み込みモードによる大量データの高速読み込み","/document/how-to/fast-load-large-data-with-lazy-load-mode",{"title":631,"_path":632},"カスタムドロップダウンセルの作成","/document/how-to/create-custom-drop-down-cell",{"title":634,"_path":635},"日付ピッカーセルの作成","/document/how-to/create-date-picker-cell",{"title":637,"_path":638},"Excelファイルからすべての画像を読み取る","/document/how-to/read-all-images-from-excel-file",{"title":640,"_path":641},"VB.NETでReoGridを使用するためのヒント","/document/how-to/use-reogrid-in-vb-net",{"title":643,"_path":644},"全選択チェックボックスヘッダーの作成","/document/how-to/create-select-all-checkbox-header",{"title":646,"_path":647,"children":648},"トラブルシューティング","/document/troubleshooting",[649,650],{"title":646,"_path":647},{"title":8,"_path":4},{"title":652,"_path":653},"エディション・機能一覧","/editions-features",{"title":655,"_path":656},"個人情報保護方針","/privacy-policy",{"title":658,"_path":659},"動作環境","/requirements",{"title":661,"_path":662},"ReoGrid利用許諾契約書","/terms",{"title":664,"_path":665},"ReoGrid利用許諾契約書(Ver.3)","/terms-v3",{"title":667,"_path":668},"ReoGrid利用許諾契約書(Ver.4)","/terms-v4",{"title":670,"_path":671},"ReoGrid 4 トライアルライセンスポリシー","/terms-v4-trial",{"title":673,"_path":674},"ReoGrid Web Edition 利用許諾契約書","/terms-web",1786025059950]