C#像运行一个exe 程序一样运行一个dll文件

        [DllImport("kernel32.dll")]
        public static extern int WinExec(string exeName, int operType);  
        public Form1()
        {
            InitializeComponent();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            WinExec(@"D:\project\LiuLun\LiuLun.Browser.Demo5\App\pdf.dll",1);
        }

这样做貌似还是有点问题的,以后再深入研究

posted @ 2015-04-04 21:15  liulun  阅读(2399)  评论(4编辑  收藏  举报