Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. Cannot call Camera function [modified]

Cannot call Camera function [modified]

Scheduled Pinned Locked Moved Mobile
helpgraphicsdata-structuresdebugging
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ahzarmokhli
    wrote on last edited by
    #1

    I need help with this function showDialog(). I'm using this to call camera function in my system.Before this i'm using TDS Nomad with window mobile 6 there is no problem with the system and now i'm chnging to new motorola FR68 with window mobile 6.1 it cannot display the camera.It show an error "invalid argument".Is there any different between WM 6 and WM 6.1. This is my code..

    Dim ccd As New CameraCaptureDialog
    ccd.Resolution = New Size(50, 100)
    ccd.Mode = CameraCaptureMode.Still
    ccd.StillQuality = CameraCaptureStillQuality.High
    ccd.ShowDialog()
    If ccd.ShowDialog() = Windows.Forms.DialogResult.OK Then
    If ccd.FileName <> String.Empty Then
    PictureBox1.Image = New Bitmap(ccd.FileName)
    ccd.Dispose()
    End If
    End If

    i get this error.. message An invalid argument was specified. Stack Trace at Microsoft.WindowsMobile.Forms.CameraCaptureDialog.LaunchCameraCaptureDialog() at Microsoft.WindowsMobile.Forms.CameraCaptureDialog.ShowDialog() at camera.Form1.Button1_Click_1() at System.Windows.Forms.Control.OnClick() at System.Windows.Forms.Button.OnClick() at System.Windows.Forms.ButtonBase.WnProc() at System.Windows.Forms.Control._InternalWnProc() at Microsoft.AGL.Forms.EVL.EnterMainLoop() at System.Windows.Forms.Application.Run() at camera.Form1.Main() Can anybody help me with this.Thank alot.. :confused: :confused:

    @h3aR

    modified on Thursday, September 3, 2009 2:27 AM

    J 1 Reply Last reply
    0
    • A ahzarmokhli

      I need help with this function showDialog(). I'm using this to call camera function in my system.Before this i'm using TDS Nomad with window mobile 6 there is no problem with the system and now i'm chnging to new motorola FR68 with window mobile 6.1 it cannot display the camera.It show an error "invalid argument".Is there any different between WM 6 and WM 6.1. This is my code..

      Dim ccd As New CameraCaptureDialog
      ccd.Resolution = New Size(50, 100)
      ccd.Mode = CameraCaptureMode.Still
      ccd.StillQuality = CameraCaptureStillQuality.High
      ccd.ShowDialog()
      If ccd.ShowDialog() = Windows.Forms.DialogResult.OK Then
      If ccd.FileName <> String.Empty Then
      PictureBox1.Image = New Bitmap(ccd.FileName)
      ccd.Dispose()
      End If
      End If

      i get this error.. message An invalid argument was specified. Stack Trace at Microsoft.WindowsMobile.Forms.CameraCaptureDialog.LaunchCameraCaptureDialog() at Microsoft.WindowsMobile.Forms.CameraCaptureDialog.ShowDialog() at camera.Form1.Button1_Click_1() at System.Windows.Forms.Control.OnClick() at System.Windows.Forms.Button.OnClick() at System.Windows.Forms.ButtonBase.WnProc() at System.Windows.Forms.Control._InternalWnProc() at Microsoft.AGL.Forms.EVL.EnterMainLoop() at System.Windows.Forms.Application.Run() at camera.Form1.Main() Can anybody help me with this.Thank alot.. :confused: :confused:

      @h3aR

      modified on Thursday, September 3, 2009 2:27 AM

      J Offline
      J Offline
      Joel Ivory Johnson
      wrote on last edited by
      #2

      Remove the resolution parameter and see if it works. I speculate your second WM device may not support that resolution.

      Joel Ivory Johnson

      Meet my dev team: RDA Architecture Evangelist Team Blog

      My site: J2i.net

      Twitter: J2iNet

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups