Thread View: borland.public.cppbuilder.multimedia
3 messages
3 total messages
Started by Tom Deleu
Sun, 20 Jan 2002 13:15
video capture
Author: Tom Deleu
Date: Sun, 20 Jan 2002 13:15
Date: Sun, 20 Jan 2002 13:15
16 lines
1375 bytes
1375 bytes
I try to create a Capture window with the following code in my onformCreate event: ------- char szDeviceName[100]; char szDeviceVersion[100]; capGetDriverDescription (0, szDeviceName, sizeof (szDeviceName), szDeviceVersion, sizeof (szDeviceVersion)); hWndC = capCreateCaptureWindow(szDeviceName, WS_CHILD | WS_VISIBLE , 0, 0, 160 , 120 , this->Handle, 0); ------- But everytime I get a "access violation" on the capCreateCaptureWindow statement... Can anyone help me and say to me what i'm doing wrong?
Re: video capture
Author: Tom Deleu
Date: Mon, 21 Jan 2002 10:55
Date: Mon, 21 Jan 2002 10:55
27 lines
1627 bytes
1627 bytes
oops, made a mistake, it not op the capCreateCaptureWindow statement, the access violation occurs but on the next statement, "capConnectDevice(hWndC, 0);" "Tom Deleu" <tdeleu@hotmail.com> schreef in bericht news:3c4ac2d3_1@dnews... > I try to create a Capture window with the following code in my onformCreate > event: > ------- > char szDeviceName[100]; > char szDeviceVersion[100]; > > capGetDriverDescription (0, szDeviceName, sizeof (szDeviceName), > szDeviceVersion, sizeof (szDeviceVersion)); > hWndC = capCreateCaptureWindow(szDeviceName, WS_CHILD | WS_VISIBLE , 0, 0, > 160 , 120 , this->Handle, 0); > ------- > > But everytime I get a "access violation" on the capCreateCaptureWindow > statement... > > Can anyone help me and say to me what i'm doing wrong? > > > > >
Re: video capture
Author: Michael Kutscher
Date: Fri, 25 Jan 2002 20:02
Date: Fri, 25 Jan 2002 20:02
19 lines
1628 bytes
1628 bytes
Hi, Tom, > access violation occurs but on the next statement, "capConnectDevice(hWndC, > 0);" I could not find anything about this function. I suppose, eigther hWndC is NULL for some reason, or this function need some non-zero second parameter. I'm using bool cap=capDriverConnect(hWndC,0); instead of this and that works fine. (CapDriverDisconnect is neccessary before closing the application). Good Luck Michael
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads