请问如何输出EVENTMSG里的内容?
ArrayList msgList = new ArrayList();
EVENTMSG curMSG = null;
try
{
curMSG = (EVENTMSG)Marshal.PtrToStructure(lParam, typeof(EVENTMSG));
}
catch (Exception e)
{
MessageBox.Show(e.ToString());
}
msgList.Add(curMSG);
如果这个输出的话Console.Write(curMSG.ToString());总是输出"EVENTMSG"
请问如何输出EVENTMSG curMSG里的内容?
[解决办法]
那你要显示哪个字段就显示哪个字段呗:
Console.Write(curMSG.message)
[解决办法]