Home > Net >  C # call if there is any can help me turn the c
C # call if there is any can help me turn the c

Time:03-04

Structure
Typedef struct tagRecords
{
Int nType;
Int nCount;
The union
{
AS_ME_EVENT_RECORD erRecord [AS_ME_MAX_GET_RECORD_NUM]; AS_ME_ALARM_RECORD arRecord [AS_ME_MAX_GET_RECORD_NUM];
AS_ME_STATE_RECORD stRecord;
};

} AS_ME_RECORDS, * LPAS_ME_RECORDS;
//my own
///& lt; Summary>
///the structure used to store multiple alarm record or event
///& lt;/summary>
[StructLayout (LayoutKind. Sequential)]
Public struct AS_ME_RECORDS
{
Public int nType;//record type, type value meaning and other members in different meanings for the record, please refer to the Remark section,

Public int nCount;//record number or error code,
Public RealParam tagRealParam;
[StructLayoutAttribute (LayoutKind. Sequential)]
Public struct RealParam
{
[MarshalAsAttribute (UnmanagedType ByValArray, SizeConst=AS_ME_MAX_GET_RECORD_NUM, ArraySubType=UnmanagedType. The Struct)]
Public AS_ME_EVENT_RECORD [] erRecord;//event

[MarshalAsAttribute (UnmanagedType ByValArray, SizeConst=AS_ME_MAX_GET_RECORD_NUM, ArraySubType=UnmanagedType. The Struct)]
Public AS_ME_ALARM_RECORD [] arRecord;//alarm

Public AS_ME_STATE_RECORD stRecord;//state
}

}


Error is there can help me turn the
  •  Tags:  
  • C#
  • Related