dada老大,你有那样的例子吗?能否发给我,谢谢!
我的邮件地址是[email protected]
我的邮件地址是[email protected]
解决方案 »
- ******高手来看一下吧,有关COM+组件动态调用的问题*********
- 两个打印机同时打印
- 求助stringGrid使用和窗体停靠的问题
- 有谁知道如何解决FastReport 4.9 导出PDF文件中文显示乱码?
- 请教:一个排队问题!
- Delphi最高版本是几点零? 下一版本是.net吗? 有中文版吗?
- 怎样快速判断数据库能不能连上,在VB中只用不到一秒钟就可以知道了!
- 怎样将采样时间插入到数据库中?
- delphi 从vc生成格式文本文件取数据
- 怎样在连接的dbgrid里面不显示table里的数据,且只让用户输入,然后post回数据库?
- 关于打印时纸张大小的问题
- csdn为什么没有离线数据库下载?
大富翁上面好象有
就可以用delphi调用VFW的函数了
var
Form1: TForm1;
CapturingAVI:boolean;
hwndc:Thandle;
implementation{$R *.DFM}
function callbackfun:integer;
begin
sendmessage(hwndc,wm_cap_grab_frame,0,0);
end;
procedure TForm1.ToolButton1Click(Sender: TObject);
begin
//starting..
hwndc:=capcreateCaptureWindow('Demo',ws_child or ws_visible,
avi.Left,avi.Top,320,240,
handle,0);
if hwndc<>0 then
begin
sendMessage(hWndc,WM_Cap_Driver_Connect,0,0);
settimer(handle,2,round(1000/24),@callbackfun);
end;
end;procedure TForm1.ToolButton2Click(Sender: TObject);
begin
//停 killtimer(hwndc,2);
sendMessage(hwndc,wm_cap_driver_disconnect,0,0);
end;end.