intPtr int 之间的转化
2018-07-17 本文已影响0人
郭江涛滔滔不绝
//int转IntPtr int i = 12;
IntPtr p = new IntPtr(i);
IntPtr p1 = (IntPtr)i;
//IntPtr转int int myi = (int)p;
MessageBox.Show(myi.ToString());
//int转IntPtr int i = 12;
IntPtr p = new IntPtr(i);
IntPtr p1 = (IntPtr)i;
//IntPtr转int int myi = (int)p;
MessageBox.Show(myi.ToString());