网页资讯视频图片知道文库贴吧地图采购
进入贴吧全吧搜索

 
 
 
日一二三四五六
       
       
       
       
       
       

签到排名:今日本吧第个签到,

本吧因你更精彩,明天继续来努力!

本吧签到人数:0

一键签到
成为超级会员,使用一键签到
一键签到
本月漏签0次!
0
成为超级会员,赠送8张补签卡
如何使用?
点击日历上漏签日期,即可进行补签。
连续签到:天  累计签到:天
0
超级会员单次开通12个月以上,赠送连续签到卡3张
使用连续签到卡
08月11日漏签0天
vb吧 关注:156,094贴子:1,166,233
  • 看贴

  • 图片

  • 吧主推荐

  • 游戏

  • 0回复贴,共1页
<<返回vb吧
>0< 加载中...

大神,帮忙翻译下我这个程序吧!跪谢!!TT

  • 只看楼主
  • 收藏

  • 回复
  • 爱吃丝瓜爱吃鱼
  • 啥也不懂
    1
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
Private Sub Form_Load()
DimlpszName As String * 100
Dim lpszVer As String * 100
Dim Caps As CAPDRIVERCAPS
Dim ssxtName As String * 100
'//Create Capture Window
capGetDriverDescriptionA 0, lpszName, 100, lpszVer, 100 '// Retrieves driver info
lwndC = capCreateCaptureWindowA(lpszName, WS_VISIBLE Or WS_CHILD, 0, 0,1600, 1200, Me.hWnd, 0)
'lwndC = capCreateCaptureWindowA(ssxtName, WS_CAPTION Or WS_THICKFRAMEOr WS_VISIBLE Or WS_CHILD, 0, 0, 1600, 1200, Me.hWnd, 0)
'// Set title of window to name of driver 超声
ssxtName = "" ' "超声实时显示界面"
SetWindowText lwndC, ssxtName
'SetWindowText lwndC, lpszName
'// Set the video stream callback function
capSetCallbackOnStatus lwndC, AddressOf MyStatusCallback
capSetCallbackOnError lwndC, AddressOf MyErrorCallback
'// Connect the capture window to the driver
If capDriverConnect(lwndC, 0) Then
'/////
'// Only do the following if the connect was successful.
'// if it fails, the error will be reported in the call
'// back function.
'/////
'// Get the capabilities of the capture driver
capDriverGetCaps lwndC, VarPtr(Caps), Len(Caps)
'// If the capture driver does not support a dialog, grey it out
'// in the menu bar.
'If Caps.fHasDlgVideoSource = 0 Then mnuSource.Enabled = False
'If Caps.fHasDlgVideoFormat = 0 Then mnuFormat.Enabled = False
'If Caps.fHasDlgVideoDisplay = 0 Then mnuDisplay.Enabled = False
'// Turn Scale on
capPreviewScale lwndC, True
'// Set the preview rate in milliseconds
capPreviewRate lwndC, 66
'// Start previewing the image from the camera
capPreview lwndC, True
'// Resize the capture window to show the whole image
ResizeCaptureWindow lwndC
End If
'Rtime.Top = 3500
'Rtime.Left = 5000
'Rtime.Height = 8000
' Rtime.Width = 9700
End Sub
Private Sub Form_Resize()
' Rtime.Height = 5850
' Rtime.Width = 6950
End Sub
Private Sub Form_Unload(Cancel As Integer) 卸载,终止程序。
'// Disable all callbacks
capSetCallbackOnError lwndC, vbNull
capSetCallbackOnStatus lwndC, vbNull
capSetCallbackOnYield lwndC, vbNull
capSetCallbackOnFrame lwndC, vbNull
capSetCallbackOnVideoStream lwndC, vbNull
capSetCallbackOnWaveStream lwndC, vbNull
capSetCallbackOnCapControl lwndC, vbNull
MDIForm1.SPDX.Enabled = True
MDIForm1.SPDX1.Enabled = True
MDIForm1.SPDX2.Enabled = True
End Sub


登录百度账号

扫二维码下载贴吧客户端

下载贴吧APP
看高清直播、视频!
  • 贴吧页面意见反馈
  • 违规贴吧举报反馈通道
  • 贴吧违规信息处理公示
  • 0回复贴,共1页
<<返回vb吧
分享到:
©2025 Baidu贴吧协议|隐私政策|吧主制度|意见反馈|网络谣言警示