<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.6000.16735" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi vtkusers,</SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I tried to capture Video from
a<STRONG><SPAN style="FONT-FAMILY: Arial"> Pinnale 510</SPAN></STRONG>
usb video capture device using </SPAN><FONT
face="Times New Roman" size=3>vtkWin32VideoSource. I searched on the mail list
and got some sample program. None of them will work, but if I tried these
programs on a Logitech digital camera, they will work.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3></FONT> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>I tried other program such as amcap, avcap which can capture the video
</FONT><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">. They all work well
<FONT face="Times New Roman" size=3>on the </FONT><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Pinnale 510 usb</SPAN>. So I think
the device and the driver is Okay.</SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>My operating system is windows XP and the development environment is
Visual C++ 6.0. I tried to traced the program and found the system halted
in the Initialize() function. On this sentence:</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><?xml:namespace prefix = o ns =
"urn:schemas-microsoft-com:office:office" /><o:p><FONT face="Times New Roman"
size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">if
(!capDriverConnect(this->Internal->CapWnd,0))</SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>After about 10 seconds, sometimes the information got the information
--"The thread 0x1738 has exited with code 0 (0x0)."</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3></FONT> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>..............................................................................................................................</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>Loaded 'C:\WINDOWS\system32\iccvid.dll', no matching symbolic information
found.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>Loaded 'C:\WINDOWS\system32\lvcodec2.dll', no matching symbolic
information found.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>Loaded 'C:\WINDOWS\system32\xpsp2res.dll', no matching symbolic
information found.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>Loaded 'C:\WINDOWS\system32\ir32_32.dll', no matching symbolic
information found.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>Loaded 'C:\WINDOWS\system32\ir32_32.dll', no matching symbolic
information found.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>Loaded 'C:\WINDOWS\system32\ir41_32.ax', no matching symbolic information
found.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>The thread 0x1738 has exited with code 0 (0x0).</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3></FONT> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>It seems that when program tried to connect to the device driver, there
were some errors. </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3></FONT> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I tried many examples; they all work
on </SPAN><FONT size=3><FONT face="Times New Roman"><STRONG>Logitech digital
camera,</STRONG> and not work on </FONT></FONT><STRONG><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Pinnale 510. </SPAN></STRONG><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">So I think the software is not the
source of the problem. Any way, I attached one of these program.</SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
grabber = vtkWin32VideoSource::New();
<BR> grabber->SetFrameSize(320,
240, 1); <BR>
grabber->VideoSourceDialog(); <BR>
grabber->VideoFormatDialog(); <BR>
grabber->Grab(); //grab a single frame from the video
<BR>......................................</SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
This program will halted on grabber->VideoSourceDialog(); because there is a
</SPAN><FONT face="Times New Roman" size=3>Initialize() function in
it.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3></FONT> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3></FONT> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I already added the vfw32.lib in the
project.I tried as much as I can to solve this problem. Is there any thing wrong
on my system?<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman"
size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Would you please help me?
Thanks.</SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Best regards</SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Liang</SPAN></P>
<P class=MsoNormal
style="MARGIN: 0in 0in 0pt"> </P></FONT></DIV></BODY></HTML>