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

C#

 
GeneralRe: sQL with C# update question Pin
Christian Graus23-Aug-07 16:55
protectorChristian Graus23-Aug-07 16:55 
GeneralRe: sQL with C# update question Pin
falles0122-Aug-07 13:18
falles0122-Aug-07 13:18 
GeneralRe: sQL with C# update question Pin
falles0121-Aug-07 13:58
falles0121-Aug-07 13:58 
GeneralRe: sQL with C# update question Pin
Christian Graus21-Aug-07 16:58
protectorChristian Graus21-Aug-07 16:58 
AnswerRe: sQL with C# update question Pin
Nouman Bhatti21-Aug-07 21:05
Nouman Bhatti21-Aug-07 21:05 
GeneralRe: sQL with C# update question Pin
Christian Graus21-Aug-07 21:51
protectorChristian Graus21-Aug-07 21:51 
QuestionCannot Update ColumnNames in Dataset......which is Directly populated by Excel Pin
T4AMD21-Aug-07 13:29
T4AMD21-Aug-07 13:29 
QuestionCapturing WebCams Pin
Demian Panello21-Aug-07 11:44
Demian Panello21-Aug-07 11:44 
Hi.

I have 2 webcams connected, they are from different providers, (a Genius NB and another cam).
My application must be able to capure both cams, so, I have 2 picture box and I'm using the API function capGetDriverDescription to get the descripions of the cams as the following code shows:

public static Device[] GetAllDevices()<br />
        {<br />
            String dName = "".PadRight(100);<br />
            String dVersion = "".PadRight(100);<br />
<br />
            for (short i = 0; i < 10; i++)<br />
            {<br />
                if (capGetDriverDescriptionA(i, ref dName, 100, ref dVersion, 100))<br />
                {<br />
                    Device d = new Device(i);<br />
                    d.Name = dName.Trim();<br />
                    d.Version = dVersion.Trim();<br />
<br />
                    devices.Add(d);                    <br />
                }<br />
<br />
                dName = "".PadRight(100);<br />
                dVersion = "".PadRight(100);<br />
            }<br />
<br />
            return (Device[])devices.ToArray(typeof(Device));<br />
        }


This is code is from an article from here, CP.

The problem is, that this code only get the description of 1 cam, I don't know why but capGetDriverDescriptionA always return true one time.

Both cams works well, even there's a program called SKIN distributed by my Genius cam that can shows both devices and you can select which one to use. I don't how this program does that.

But I need to show the video of 2 web cams at the same time. Which API could help me?

Thank you.



Demian.

"I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my telephone."

-Bjarne Stroustrup, computer science professor, designer of C++
programming language (1950- )

QuestionProblem in deleting an image associated with a picturebox... Pin
aravinda77721-Aug-07 9:39
aravinda77721-Aug-07 9:39 
AnswerRe: Problem in deleting an image associated with a picturebox... Pin
Christian Graus21-Aug-07 11:14
protectorChristian Graus21-Aug-07 11:14 
GeneralRe: Problem in deleting an image associated with a picturebox... Pin
aravinda77721-Aug-07 19:52
aravinda77721-Aug-07 19:52 
QuestionDataGridView focus Pin
tthellebuyck21-Aug-07 8:40
tthellebuyck21-Aug-07 8:40 
AnswerRe: DataGridView focus Pin
Hessam Jalali21-Aug-07 9:29
Hessam Jalali21-Aug-07 9:29 
Questiondata conversion problem Pin
elwoofy21-Aug-07 7:31
elwoofy21-Aug-07 7:31 
AnswerRe: data conversion problem Pin
Giorgi Dalakishvili21-Aug-07 7:41
mentorGiorgi Dalakishvili21-Aug-07 7:41 
GeneralRe: data conversion problem Pin
elwoofy21-Aug-07 9:24
elwoofy21-Aug-07 9:24 
GeneralRe: data conversion problem Pin
Giorgi Dalakishvili21-Aug-07 9:41
mentorGiorgi Dalakishvili21-Aug-07 9:41 
AnswerRe: data conversion problem Pin
Insincere Dave21-Aug-07 16:28
Insincere Dave21-Aug-07 16:28 
AnswerRe: data conversion problem Pin
elwoofy22-Aug-07 4:26
elwoofy22-Aug-07 4:26 
GeneralRe: data conversion problem Pin
Insincere Dave22-Aug-07 6:45
Insincere Dave22-Aug-07 6:45 
QuestionHow to check a string to see if it’s valid for use in creating a file name Pin
earlgraham21-Aug-07 7:24
earlgraham21-Aug-07 7:24 
AnswerRe: How to check a string to see if it’s valid for use in creating a file name Pin
Brady Kelly21-Aug-07 7:31
Brady Kelly21-Aug-07 7:31 
AnswerRe: How to check a string to see if it’s valid for use in creating a file name Pin
earlgraham21-Aug-07 10:05
earlgraham21-Aug-07 10:05 
GeneralRe: How to check a string to see if it’s valid for use in creating a file name Pin
PIEBALDconsult21-Aug-07 10:50
mvePIEBALDconsult21-Aug-07 10:50 
GeneralRe: How to check a string to see if it’s valid for use in creating a file name Pin
Luc Pattyn21-Aug-07 12:38
sitebuilderLuc Pattyn21-Aug-07 12:38 

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.