C#????C++???????Щ???
???????????? ???????[ 2015/1/26 13:34:23 ] ????????C# C++ net
????4?????????int???4???????
?????????????c++?????????
????U_CAMER LONG WINAPI CAMER_GetPropery( HANDLE hCamer?? _CMRCTL Propery );
??????????????????????c#?е????????????
????[DllImport("UCamer.dll"?? CallingConvention = CallingConvention.Winapi)]
????public extern static Uint16 CAMER_GetPropery(IntPtr hCamer?? CMRCTL Propery);
??????????c#????????
????uint16 m_HiWi_temp = (uint)BCamera.CAMER_GetPropery(m_hCamer?? CMRCTL.OUT_SIZE);
?????????????????????????????????????????????????????int32??4??????2??????
????????????c++???????????
????*((PULONG)m_HiWi) = *((PULONG)m_Display) = CAMER_GetPropery( m_hCamer?? OUT_SIZE );
????m_hShow = Disp_Create( m_hWnd?? m_HiWi[1]?? m_HiWi[0]?? m_nColor?? (USERDRAW)((m_ReDrawLine == TRUE) ? DrawLine : NULL)?? this );
????????CAMER_GetPropery??????????????long?????c++????????????????long??????????? pulong?????ulong?????顣
??????c#???????????????????
int m_HiWi_temp = BCamera.CAMER_GetPropery(m_hCamer?? CMRCTL.OUT_SIZE);
byte[] m_byte_HiWi = BitConverter.GetBytes(m_HiWi_temp);
byte[] temp1 = new byte[2] { m_byte_HiWi[0]?? m_byte_HiWi[1] };
byte[] temp2 = new byte[2] { m_byte_HiWi[2]?? m_byte_HiWi[3] };
int width = BitConverter.ToInt16(temp1?? 0);
int high = BitConverter.ToInt16(temp2?? 0);
|
???????????????????c++??????????????int???????????c++?п????????int???????????????????????uint16?????顣????c#???????????????????????????
???????:?????????????????????????洢?????????c++?е????????????????????????c#??????????????????????????c#???????????????????????????????Щ??
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11