<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post/3008/</link>
<title><![CDATA[VB 最简单实现摄像头监控（带源代码）]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Mon, 26 Apr 2010 13:18:13 +0000</pubDate> 
<guid>http://www.jackxiang.com/post/3008/</guid> 
<description>
<![CDATA[ 
	VB 最简单实现摄像头监控（带源代码）<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 以前发现控制摄像头都是以大堆代码 ！ 今天写了个很少的代码 送给大家<br/><br/><a href="http://www.jackxiang.com/attachment.php?fid=100" target="_blank"><img src="http://www.jackxiang.com/attachment.php?fid=100" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/><br/><div class="code">Private Declare Function SendMessage Lib &quot;USER32&quot; Alias &quot;SendMessageA&quot; (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long<br/>Private Declare Function capCreateCaptureWindow Lib &quot;avicap32.dll&quot; Alias &quot;capCreateCaptureWindowA&quot; (ByVal lpszWindowName As String, ByVal dwStyle As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hwndParent As Long, ByVal nID As Long) As Long<br/>Private Const GET_FRAME As Long = 1084<br/>Private Const COPY As Long = 1054<br/>Private Const CONNECT As Long = 1034<br/>Private Const DISCONNECT As Long = 1035<br/>Private CapHwnd As Long<br/><br/>Private Sub Command1_Click()<br/>&nbsp;&nbsp; &#039;打开摄像头<br/>&nbsp;&nbsp; CapHwnd = capCreateCaptureWindow(&quot;WebcamCapture&quot;, 0, 0, 0, 640, 480, Me.hwnd, 0)<br/>&nbsp;&nbsp; DoEvents<br/>&nbsp;&nbsp; SendMessage CapHwnd, CONNECT, 0, 0<br/>&nbsp;&nbsp; Timer1.Enabled = True<br/>End Sub<br/>Private Sub Command2_Click()<br/>&nbsp;&nbsp; &#039;停止摄像头<br/>&nbsp;&nbsp; DoEvents<br/>&nbsp;&nbsp; SendMessage CapHwnd, DISCONNECT, 0, 0<br/>&nbsp;&nbsp; Timer1.Enabled = False<br/>&nbsp;&nbsp; <br/>End Sub<br/>Private Sub Form_Load()<br/>&#039;几句代码实现控制摄像头,有摄像头的进哦<br/>&nbsp;&nbsp;&nbsp;&nbsp;Combo1.AddItem &quot;160*120&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp;Combo1.AddItem &quot;176*144&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp;Combo1.AddItem &quot;320*240&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp;Combo1.AddItem &quot;352*288&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp;Combo1.AddItem &quot;640*480&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp;Combo1.ListIndex = 0<br/>&nbsp;&nbsp;&nbsp;&nbsp;<br/>End Sub<br/>Private Sub Timer1_Timer() &#039;timer1.Interval=50<br/>&nbsp;&nbsp; On Error Resume Next<br/>&nbsp;&nbsp; SendMessage CapHwnd, GET_FRAME, 0, 0<br/>&nbsp;&nbsp; SendMessage CapHwnd, COPY, 0, 0<br/>&nbsp;&nbsp; Picture1.Picture = Clipboard.GetData<br/>&nbsp;&nbsp; <br/>&nbsp;&nbsp; Clipboard.Clear<br/>&nbsp;&nbsp; <br/>End Sub</div><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;测试成功 ！&nbsp;&nbsp;窗体代码自己看我的截图自己添加 ！&nbsp;&nbsp;这个都不会就不要学VB 了 <br/>
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post/3008/#blogcomment51644</link>
<title><![CDATA[[评论] VB 最简单实现摄像头监控（带源代码）]]></title> 
<author>半山有雾 &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Fri, 03 Sep 2010 06:38:34 +0000</pubDate> 
<guid>http://www.jackxiang.com/post/3008/#blogcomment51644</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;哈哈&nbsp;&nbsp;我看到过的最强的咯 哪些api函数 看到头都晕了
]]>
</description>
</item>
</channel>
</rss>