User manual - DT-5100カシオライブラリマニュアル for.NET【概要編】ver.3.00(2004年3月8日)

DT-5100 .NET ライブラリマニュアル
【概要編】
16 int* Dim ptr As IntPtr
Dim dat As Int32
ptr = function()
dat=Marshal.ReadInt32(ptr)
Dim dat As Int32
17 long*
Dim ptr As IntPtr
Dim dat As Int32
ptr = function()
dat=Marshal.ReadInt32(ptr)
Dim dat As Int32
18 DWORD* Dim ptr As IntPtr
Dim dat As UInt32
Dim dmy() as UInt32
ptr = function()
Marshal.Copy(ptr,dat,0,1)
dat = dmy(0)
Dim dat As UInt32
Marshal.Copy により獲得する。
Copy()では配列指定しか出来ないため、
ダミー配列経由で獲得する)
19
構造体*
Dim ptr As IntPtr
Dim stc As struct1
ptr = function()
stc = Marshal.PtrToStructure(
ptr, GetType(struct1))
Dim stc As struct1
CE ではできません。VisualStudio.NET 2003Compact Framwork β2 で構造体
の中に配列が定義されている場合)
13