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);
        }

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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM