請問有關CameraCaptureDialog

.NET Compact Framework

請問有關CameraCaptureDialog


peiwan 2007-10-30, 19:11
不好意思
最近我在學手機照相的程式

我利用了windows mobile 5.0 pocket pc 的 CameraCaptureDialog方法去抓相機拍到的圖片

(我所使用的pocket pc是dopod)
為什麼在執行時會出現"找不到 PInvoke DLL 'aygshell.dll' 中的進入點 'SHCameraCapture'。"的錯誤

程式如下:

 private void button1_Click(object sender, EventArgs e)
     {
     CameraCaptureDialog ccd = new CameraCaptureDialog();
     ccd.Mode = CameraCaptureMode.Still;
     ccd.StillQuality = CameraCaptureStillQuality.High;
     ccd.Title = "Say Cheese";

     if (ccd.ShowDialog() == DialogResult.OK) <--這一行會出現錯誤
     {
     pictureBox1.Image = new Bitmap(ccd.FileName);
     }

     }

謝謝
Copy Left WinFans(R)

Powered by Community Server Powered by CnForums.Net