<P>程序如下:
HANDLE ghInstance; // application instance
HWND hwndMain; // main window handle
HWND hwndSelCapDrvDlg; // Select the capture driver dialog
CAPDRIVERCAPS CapDrvCaps; // driver capabilities</P>
<P>BOOL _stdcall DllMain( HINSTANCE histDLL,
DWORDfdwReason,
LPVOID lpReserved
)
{
return TRUE;
}</P>
<P>
long int _declspec(dllexport) CaptureBMP()
{
hwndMain = capCreateCaptureWindow(
"Super Video",
WS_CHILD|WS_VISIBLE,
0,
0,
320,
240,
NULL,
1
);
int sel = 0;
SendMessage( hwndMain, WM_CAP_DRIVER_CONNECT, sel, 0L);
char name;
strcpy(name,"Bpic");
strcat(name,".bmp");
capFileSaveDIB(hwndMain, name);
SendMessage(hwndMain,WM_SYSCOMMAND,SC_CLOSE,0);
return 1;</P>
<P>}
</P> 呵呵,你在编译的时候有个东东忘记选了吧:),再看看吧,自已捡查出来的比我们告诉你的要有用一些哦
页:
[1]