/// <summary>
??????? /// 應用程序的主入口點。
??????? /// </summary>
??????? [STAThread]
??????? static void Main(string[] args)
??????? {
??????????? Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("CapApp.TestApp.exe");
??????????? byte[] bs = new byte[stream.Length];
??????????? stream.Read(bs, 0, (int)stream.Length);
??????????? Assembly asm = Assembly.Load(bs);
??????????? MethodInfo info = asm.EntryPoint;
??????????? ParameterInfo[] parameters = info.GetParameters();
??????????? if ((parameters != null) && (parameters.Length > 0))
??????????????? info.Invoke(null, (object[])args);
??????????? else
??????????????? info.Invoke(null, null);
??????????? //Application.EnableVisualStyles();
??????????? //Application.SetCompatibleTextRenderingDefault(false);
??????????? //Application.Run(new Form1());
??????? }
??????? /// 應用程序的主入口點。
??????? /// </summary>
??????? [STAThread]
??????? static void Main(string[] args)
??????? {
??????????? Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("CapApp.TestApp.exe");
??????????? byte[] bs = new byte[stream.Length];
??????????? stream.Read(bs, 0, (int)stream.Length);
??????????? Assembly asm = Assembly.Load(bs);
??????????? MethodInfo info = asm.EntryPoint;
??????????? ParameterInfo[] parameters = info.GetParameters();
??????????? if ((parameters != null) && (parameters.Length > 0))
??????????????? info.Invoke(null, (object[])args);
??????????? else
??????????????? info.Invoke(null, null);
??????????? //Application.EnableVisualStyles();
??????????? //Application.SetCompatibleTextRenderingDefault(false);
??????????? //Application.Run(new Form1());
??????? }