using System; using System.Windows.Forms; namespace OTSIncAReportTemplate { static class Program { ///// ///// 应用程序的主入口点。 ///// //[STAThread] //static void Main() //{ // Application.EnableVisualStyles(); // Application.SetCompatibleTextRenderingDefault(false); // Application.Run(new OTSIncAReportTemplate()); //} /// /// 应用程序的主入口点。 /// [STAThread] static void Main(string[] args) //这里的 args 就为 {arg1,arg2} 了 { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new OTSIncAReportTemplate(args)); } } }