Click here to Skip to main content
15,917,005 members
Home / Discussions / C#
   

C#

 
QuestionArrays of structures (inside a structure) Pin
Kim Ferrari2-Feb-07 13:10
Kim Ferrari2-Feb-07 13:10 
AnswerRe: Arrays of structures (inside a structure) Pin
Luc Pattyn2-Feb-07 13:27
sitebuilderLuc Pattyn2-Feb-07 13:27 
GeneralRe: Arrays of structures (inside a structure) Pin
Kim Ferrari5-Feb-07 12:51
Kim Ferrari5-Feb-07 12:51 
QuestionMouseClick event on wia video overlay Pin
stevva2-Feb-07 12:58
stevva2-Feb-07 12:58 
AnswerRe: MouseClick event on wia video overlay Pin
Luc Pattyn2-Feb-07 13:04
sitebuilderLuc Pattyn2-Feb-07 13:04 
GeneralRe: MouseClick event on wia video overlay Pin
stevva3-Feb-07 4:39
stevva3-Feb-07 4:39 
GeneralRe: MouseClick event on wia video overlay Pin
Luc Pattyn3-Feb-07 5:27
sitebuilderLuc Pattyn3-Feb-07 5:27 
GeneralRe: MouseClick event on wia video overlay Pin
stevva6-Feb-07 6:21
stevva6-Feb-07 6:21 
Thanks for trying to help! Smile | :)

Video overlay is placed in the Control like this:

wiaVideo = new WiaVideoClass();
wiaVideo.CreateVideoByWiaDevID( wiaDeviceID, window.Handle, 0, 1 );

WiaVideoClass looks like this:

namespace WIAVIDEOLib
{
[Guid("3908C3CD-4478-4536-AF2F-10C25D4EF89A")]
[TypeLibType(2)]
[ClassInterface(0)]
public class WiaVideoClass : IWiaVideo, WiaVideo
{
public WiaVideoClass();

[DispId(2)]
public virtual string ImagesDirectory { get; set; }
[DispId(1)]
public virtual int PreviewVisible { get; set; }

public virtual void CreateVideoByDevNum(uint uiDeviceNumber, IntPtr hwndParent, int bStretchToFitParent, int bAutoBeginPlayback);
public virtual void CreateVideoByName(string bstrFriendlyName, IntPtr hwndParent, int bStretchToFitParent, int bAutoBeginPlayback);
public virtual void CreateVideoByWiaDevID(string bstrWiaDeviceID, IntPtr hwndParent, int bStretchToFitParent, int bAutoBeginPlayback);
public virtual void DestroyVideo();
public virtual WIAVIDEO_STATE GetCurrentState();
public virtual void Pause();
public virtual void Play();
public virtual void ResizeVideo(int bStretchToFitParent);
public virtual void TakePicture(out string pbstrNewImageFilename);
}
}

Whole example is from here:
http://www.codeproject.com/dotnet/wiascriptingdotnet.asp?df=100&forumid=3908&exp=0&select=945495

Thanks again!
Questionprogress bar Pin
netJP12L2-Feb-07 10:46
netJP12L2-Feb-07 10:46 
AnswerRe: progress bar Pin
Christian Graus2-Feb-07 11:19
protectorChristian Graus2-Feb-07 11:19 
GeneralRe: progress bar Pin
netJP12L2-Feb-07 11:31
netJP12L2-Feb-07 11:31 
GeneralRe: progress bar Pin
Christian Graus2-Feb-07 11:44
protectorChristian Graus2-Feb-07 11:44 
GeneralRe: progress bar Pin
netJP12L2-Feb-07 11:46
netJP12L2-Feb-07 11:46 
GeneralRe: progress bar Pin
Luc Pattyn2-Feb-07 13:08
sitebuilderLuc Pattyn2-Feb-07 13:08 
GeneralRe: progress bar Pin
Christian Graus2-Feb-07 15:54
protectorChristian Graus2-Feb-07 15:54 
Questionmouse position Pin
negar soleimani2-Feb-07 10:28
negar soleimani2-Feb-07 10:28 
AnswerRe: mouse position Pin
Luc Pattyn2-Feb-07 10:31
sitebuilderLuc Pattyn2-Feb-07 10:31 
QuestionHow do I cast a string to type System.Windows.Forms.MessageBoxButtons Pin
Vernware2-Feb-07 10:25
Vernware2-Feb-07 10:25 
AnswerRe: How do I cast a string to type System.Windows.Forms.MessageBoxButtons Pin
Luc Pattyn2-Feb-07 10:39
sitebuilderLuc Pattyn2-Feb-07 10:39 
GeneralRe: How do I cast a string to type System.Windows.Forms.MessageBoxButtons Pin
Vernware4-Feb-07 1:48
Vernware4-Feb-07 1:48 
AnswerRe: How do I cast a string to type System.Windows.Forms.MessageBoxButtons Pin
Christian Graus2-Feb-07 11:19
protectorChristian Graus2-Feb-07 11:19 
GeneralRe: How do I cast a string to type System.Windows.Forms.MessageBoxButtons Pin
Vernware4-Feb-07 1:45
Vernware4-Feb-07 1:45 
Questiontooltip problem. Pin
teejayem2-Feb-07 10:23
teejayem2-Feb-07 10:23 
AnswerRe: tooltip problem. Pin
Luc Pattyn2-Feb-07 10:43
sitebuilderLuc Pattyn2-Feb-07 10:43 
QuestionDesktop layering Pin
lost in transition 2-Feb-07 9:24
lost in transition 2-Feb-07 9:24 

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.