12345678910111213141516171819202122232425262728293031323334353637383940 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.Net;
- using System.Net.Sockets;
- using System.IO;
- using System.Threading;
- using System.Runtime.Serialization.Formatters.Binary;
- using System.Runtime.InteropServices;
- using System.Reflection;
- namespace FPER
- {
- class TDebug
- {// »ç¿ë ¾ÈÇÔ
- [DllImport("kernel32.dll")]
- static extern void OutputDebugString(string message);
- public static void DoPrintDBGMSG(string str)
- {
- str = "[FPER]" + System.DateTime.Now.ToString("[hh:mm:ss]") + ":" + str;
- OutputDebugString(str);
- }
- public static void OpenDBGMSG(string str)
- {
- DoPrintDBGMSG("+" + str);
- }
- public static void CloseDBGMSG(string str)
- {
- DoPrintDBGMSG("-" + str);
- }
- }
- }
|