調用的dll為inpout32.dll---操作並口 錯誤如下: 
SEHException External component has thrown an exception  
C# code
    public class PortAccess
    {
        [DllImport("inpout32.dll", EntryPoint = "Out32")]
        public static extern void Output(int adress, int value);        [DllImport("inpout32.dll", EntryPoint = "Inp32")]
        public static extern int Input(int adress);
    }        private void button2_Click(object sender, EventArgs e)
        {
            int m= PortAccess.Input(888);//从888(即0x378)端口读取数据
            this.textBox1.Text = m.ToString();
        }        private void button1_Click(object sender, EventArgs e)
        {
            //int m = Convert.ToInt32(this.textBox2.Text.Trim());
            PortAccess.Output(888, 4);//把4从888端口输出 
            
        }謝謝!