i m converting the char in string
\0\0\0\0\0\0\0\0??;\b\0\0\0\0?????qUw?g?\u0001\0\0\0\0 its not humman readable data.
so what will be do for write Data
i want this type of data 2018-03-12 16.16.25 ?
What I have tried:
public struct PLAT_SUBSCRIBE_EVENT_V20
{
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 32)] public char[]
szAlarmTime;
}
public void CB_SubscribeEvent(PLAT_SUBSCRIBE_EVENT_V20 pstEvent, IntPtr pUser)
{
byte[] _szAlarmTime = Encoding.Default.GetBytes(pstEvent.szAlarmTime);
string __szAlarmTime = Encoding.Default.GetString(ar);
}
but __szAlarmTime = \0\0\0\0\0\0\0\0??;\b\0\0\0\0?????qUw?g?\u0001\0\0\0\0"
\0\0\0\0\0\0\0\0??;\b\0\0\0\0?????qUw?g?\u0001\0\0\0\0 its not humman readable data.
so what will be do for write Data
i want this type of data 2018-03-12 16.16.25 ?