Jack

Jack

  • NA
  • 3
  • 0

PInvoke

Nov 24 2005 1:16 AM

Hi All
Could Anyone Please tell me how to write PInvoke by using "OutputDebugString"
for the above tracelistener

namespace System.Diagnostics {
      using System;
      using System.Text;

      public abstract class TraceListener : MarshalByRefObject,
                             IDisposable {

         protected TraceListener () {
          }

         protected TraceListener(string name) {
             this.listenerName = name;
         }

         public virtual string Name {
            get {

             set { listenerName = value; }
         }
  public abstract void Write(string message);

         public virtual void Write(object o) {
             if (o == null) return;
             Write(o.ToString());
         }

         public abstract void WriteLine(string message);

         public virtual void WriteLine(object o) {
             WriteLine(o == null ? "" : o.ToString());
         }

                 
     }
 }