方法一、
int轉IntPtr
int i = 12;
IntPtr p = new IntPtr(i);
IntPtr轉int
int myi = (int)p;
MessageBox.Show(myi.ToString());
方法二、
int轉IntPtr
int i = 12;
IntPtr p =(IntPtr)i
IntPtr轉int
int myi = (int)p;
MessageBox.Show(myi.ToString());