Hi All Could Anyone Please tell me how to write PInvoke by using "OutputDebugString"for the above tracelistenernamespace 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()); }
} }