有那位大侠知道 在写WINDOWS2000日志文件的时候 所需要的资源文件格式

解决方案 »

  1.   

    第一次接触这样的问题
    友情up
    gz
      

  2.   

    应用程序日志Application,系统日志System,安全日志Security
    写入日志:
    byte[] myByte=new byte[10];
    for(int i=0;i<10;i++)
    {
    myByte[i]= (byte)(i % 2);
    }
    // Write an informational entry to the event log.
    EventLog.WriteEntry("SecondSource","Writing warning to event log.", 
    EventLogEntryType.Error,123,1 ,myByte);
    读取日志:
    EventLog sample=new EventLog();
    sample.Log="Application";
    EventLogEntryCollection myCollection=sample.Entries;
    foreach(EventLogEntry test in myCollection) { Console.WriteLine(test.Message,test.Source,test.EventID); }
      

  3.   

    我做过,挺复杂的,你在msdn查询一下。好像是这样:
    先写一个mc文件,然后编译成rc文件,然后编译成 res 文件,然后。
      

  4.   


    MyApplication.mc;//LanguageNames=(Chinese=0x0804:MSG00804) 
    ;//LanguageNames=(English=1:MSG00001)MessageId=1
    Language=English
    %1
    .MessageId=2
    Language=English
    Service started.
    .MessageId=3
    Language=English
    Service stoped.
    .MessageId=4
    Language=English
    Please regist software.
    .MessageId=5
    Language=English
    Error by message:%1
    .
    mc MyApplication.mc
    brc32 -r -foMyApplication.res -v -32 MyApplication.rc
    mc.exe vc++ 6 里面有