Click here to Skip to main content
15,912,072 members
Home / Discussions / C#
   

C#

 
AnswerRe: 'Matrix' cound not be found.. . Pin
OriginalGriff5-Feb-10 3:54
mveOriginalGriff5-Feb-10 3:54 
GeneralRe: 'Matrix' cound not be found.. . Pin
George Todd5-Feb-10 5:33
George Todd5-Feb-10 5:33 
QuestionGrid View control update delete with dataset disconnected environment. Pin
Sasmi_Office5-Feb-10 1:35
Sasmi_Office5-Feb-10 1:35 
AnswerRe: Grid View control update delete with dataset disconnected environment. Pin
Not Active5-Feb-10 2:31
mentorNot Active5-Feb-10 2:31 
AnswerRe: Grid View control update delete with dataset disconnected environment. Pin
Vimalsoft(Pty) Ltd5-Feb-10 3:43
professionalVimalsoft(Pty) Ltd5-Feb-10 3:43 
Questionhow to get the open ports of the remote pc Pin
prasadbuddhika5-Feb-10 0:55
prasadbuddhika5-Feb-10 0:55 
AnswerRe: how to get the open ports of the remote pc Pin
Dave Kreskowiak5-Feb-10 2:21
mveDave Kreskowiak5-Feb-10 2:21 
Questionc# captureparms Pin
danf884-Feb-10 23:25
danf884-Feb-10 23:25 
For the past few weeks iv been working on a C# app to record from a webcam and make notes on it via button presses during said capture. The problem now is that by default the app freezes during capture, and stops capturing with a mouse click. I know that i need to change it using the captureparms structure which holds information on the default behaviour of the capture, but my attempts up to now just dont work. My sendmessage to set the capture parameters is successful and returned true when i put in code to check, so it leaves me a bit stumped and im thinking it must be something related to me doing the structure wrongly. Is there any chance anyone could help shed some light on why it isnt working?

CAPTUREPARMS CaptureParams = new CAPTUREPARMS();
           CaptureParams.fYield = 1;
           CaptureParams.fAbortLeftMouse = 0;
           CaptureParams.fAbortRightMouse = 0;
           CaptureParams.dwRequestMicroSecPerFrame = 66667;
           CaptureParams.fMakeUserHitOKToCapture = 0;
           CaptureParams.wPercentDropForError = 10;
           CaptureParams.wChunkGranularity = 0;
           CaptureParams.dwIndexSize = 0;
           CaptureParams.wNumVideoRequested = 10;
           CaptureParams.fCaptureAudio = 0;
           CaptureParams.fMCIControl = 0;
           CaptureParams.fStepMCIDevice = 0;
           CaptureParams.dwMCIStartTime = 0;
           CaptureParams.dwMCIStopTime = 0;
           CaptureParams.fStepCaptureAt2x = 0;
           CaptureParams.wStepCaptureAverageFrames = 5;
           CaptureParams.dwAudioBufferSize = 0;


[StructLayout(LayoutKind.Sequential, Pack = 1, CharSet = CharSet.Ansi)]
      public struct CAPTUREPARMS
      {
          public System.UInt32 dwRequestMicroSecPerFrame;
          public System.Int32 fMakeUserHitOKToCapture;
          public System.UInt32 wPercentDropForError;
          public System.Int32 fYield;
          public System.UInt32 dwIndexSize;
          public System.UInt32 wChunkGranularity;
          public System.Int32 fCaptureAudio;
          public System.UInt32 wNumVideoRequested;
          public System.Int32 fAbortLeftMouse;
          public System.Int32 fAbortRightMouse;
          public System.Int32 fMCIControl;
          public System.Int32 fStepMCIDevice;
          public System.UInt32 dwMCIStartTime;
          public System.UInt32 dwMCIStopTime;
          public System.Int32 fStepCaptureAt2x;
          public System.UInt32 wStepCaptureAverageFrames;
          public System.UInt32 dwAudioBufferSize;

          public void SetParams(System.Int32 fYield, System.Int32 fAbortLeftMouse, System.Int32 fAbortRightMouse, System.UInt32 dwRequestMicroSecPerFrame, System.Int32 fMakeUserHitOKToCapture,
              System.UInt32 wPercentDropForError, System.UInt32 dwIndexSize, System.UInt32 wChunkGranularity, System.UInt32 wNumVideoRequested, System.Int32 fCaptureAudio, System.Int32 fMCIControl,
              System.Int32 fStepMCIDevice, System.UInt32 dwMCIStartTime, System.UInt32 dwMCIStopTime, System.Int32 fStepCaptureAt2x, System.UInt32 wStepCaptureAverageFrames, System.UInt32 dwAudioBufferSize)
          {
              this.dwRequestMicroSecPerFrame = dwRequestMicroSecPerFrame;
              this.fMakeUserHitOKToCapture = fMakeUserHitOKToCapture;
              this.fYield = fYield;
              this.wPercentDropForError = wPercentDropForError;
              this.dwIndexSize = dwIndexSize;
              this.wChunkGranularity = wChunkGranularity;
              this.wNumVideoRequested = wNumVideoRequested;
              this.fCaptureAudio = fCaptureAudio;
              this.fAbortLeftMouse = fAbortLeftMouse;
              this.fAbortRightMouse = fAbortRightMouse;
              this.fMCIControl = fMCIControl;
              this.fStepMCIDevice = fStepMCIDevice;
              this.dwMCIStartTime = dwMCIStartTime;
              this.dwMCIStopTime = dwMCIStopTime;
              this.fStepCaptureAt2x = fStepCaptureAt2x;
              this.wStepCaptureAverageFrames = wStepCaptureAverageFrames;
              this.dwAudioBufferSize = dwAudioBufferSize;

Sorry about the length but without providing this i dont think anyone would really have known what i had done.
QuestionClarification in WPF Pin
Joe Rozario4-Feb-10 23:09
Joe Rozario4-Feb-10 23:09 
AnswerRe: Clarification in WPF Pin
OriginalGriff4-Feb-10 23:25
mveOriginalGriff4-Feb-10 23:25 
GeneralRe: Clarification in WPF Pin
Joe Rozario4-Feb-10 23:27
Joe Rozario4-Feb-10 23:27 
AnswerRe: Clarification in WPF Pin
V.5-Feb-10 0:58
professionalV.5-Feb-10 0:58 
GeneralRe: Clarification in WPF Pin
Joe Rozario5-Feb-10 1:02
Joe Rozario5-Feb-10 1:02 
QuestionShort cut key Problem in c# User Control Pin
shashank35254-Feb-10 23:05
shashank35254-Feb-10 23:05 
QuestionModule based software Pin
Eduard Keilholz4-Feb-10 21:11
Eduard Keilholz4-Feb-10 21:11 
AnswerRe: Module based software Pin
Not Active4-Feb-10 21:20
mentorNot Active4-Feb-10 21:20 
Questionmultithreaded application Pin
Member 5903104-Feb-10 19:31
Member 5903104-Feb-10 19:31 
AnswerRe: multithreaded application Pin
Not Active4-Feb-10 20:12
mentorNot Active4-Feb-10 20:12 
AnswerRe: multithreaded application Pin
Calla4-Feb-10 20:52
Calla4-Feb-10 20:52 
Questionhow can i select null instances using datacontext.tablename.select ? Pin
tonyonlinux4-Feb-10 19:13
tonyonlinux4-Feb-10 19:13 
AnswerRe: how can i select null instances using datacontext.tablename.select ? Pin
Not Active4-Feb-10 20:10
mentorNot Active4-Feb-10 20:10 
GeneralRe: how can i select null instances using datacontext.tablename.select ? Pin
tonyonlinux4-Feb-10 20:21
tonyonlinux4-Feb-10 20:21 
GeneralRe: how can i select null instances using datacontext.tablename.select ? Pin
Not Active4-Feb-10 20:48
mentorNot Active4-Feb-10 20:48 
QuestionInheritance/Polymorphism [modified] Pin
Sundeepan Sen4-Feb-10 18:26
Sundeepan Sen4-Feb-10 18:26 
AnswerRe: Inheritance/Polymorphism Pin
Not Active4-Feb-10 20:07
mentorNot Active4-Feb-10 20:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.