13,007
回編集
247行目: | 247行目: | ||
<br><br> | <br><br> | ||
== C# | == C#のデータ型とC++のデータ型 == | ||
<center> | <center> | ||
{| class="wikitable" | style="background-color:#fefefe;" | {| class="wikitable" | style="background-color:#fefefe;" | ||
255行目: | 255行目: | ||
! style="background-color:#66CCFF;" | 備考 | ! style="background-color:#66CCFF;" | 備考 | ||
|- | |- | ||
| HANDLE (void *)<br>HMODULE<br>HINSTANCE<br>HWND || System.IntPtr<br>System.UIntPtr || x86は4バイト<br>x64は8バイト | | HANDLE (void *)<br>HMODULE<br>HINSTANCE<br>HWND<br>HWM<br>HGDIOBJ<br>HDC || System.IntPtr<br>System.UIntPtr || x86は4バイト<br>x64は8バイト | ||
|- | |- | ||
| char 配列名 [配列サイズ] || MarshalAs(UnmanagedType.ByValTStr, SizeConst = 配列のサイズ)] public string 配列名 || | | char 配列名 [配列サイズ] || MarshalAs(UnmanagedType.ByValTStr, SizeConst = 配列のサイズ)] public string 配列名 || | ||
271行目: | 271行目: | ||
| WORD (unsigned short) || ushort (System.UInt16) || | | WORD (unsigned short) || ushort (System.UInt16) || | ||
|- | |- | ||
| INT (int)<br>LONG (long) || int (System.Int32) || System.Int16でも取得できる可能性がある。 | | INT (int)<br>LONG (long)<br>DWORDLONG<br>HPARAM<br>LPARAM<br>WPARAM || int (System.Int32) || System.Int16でも取得できる可能性がある。 | ||
|- | |- | ||
| UINT (unsigned int)<br>DWORD (unsigned long)<br>ULONG (unsigned long) || uint (System.UInt32) || | | UINT (unsigned int)<br>DWORD (unsigned long)<br>ULONG (unsigned long) || uint (System.UInt32) || |