Click here to Skip to main content
15,917,627 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: STL string Pin
Ryan Binns6-Aug-03 5:07
Ryan Binns6-Aug-03 5:07 
Generalmultilingual applications Pin
nadavba6-Aug-03 4:32
nadavba6-Aug-03 4:32 
GeneralRe: multilingual applications Pin
Maximilien6-Aug-03 4:38
Maximilien6-Aug-03 4:38 
GeneralRe: multilingual applications Pin
nadavba6-Aug-03 5:48
nadavba6-Aug-03 5:48 
Generalunicows.dll??? Pin
nikoladsp22-Oct-03 1:06
nikoladsp22-Oct-03 1:06 
GeneralRe: unicows.dll??? Pin
nadavba22-Oct-03 5:15
nadavba22-Oct-03 5:15 
GeneralRe: unicows.dll??? Pin
nikoladsp22-Oct-03 20:12
nikoladsp22-Oct-03 20:12 
GeneralVideo capturing Pin
Jump_Around6-Aug-03 4:21
Jump_Around6-Aug-03 4:21 
I have a problem with video capturing. When I call create function everything goes fine, it means capDriver is loaded succesfully, setting callback function goes fine.... . What i see on the cap window is just the first image which has been grabed. The problem is that the call back function is not called. How to change the code if I want to use frame callback function?

Please help

typedef LRESULT (CALLBACK *FRAMECALLBACK)(HWND , LPVIDEOHDR);
LRESULT PASCAL _grabber_CallbackProc(HWND hWnd, LPVIDEOHDR lpVHdr);

BOOL CCaptureVideo::Create(DWORD dwStyle, const RECT& rect, HWND pParentWnd)
{

hCaptureWnd=capCreateCaptureWindow("AviCap_Basic",
dwStyle, rect.left, rect.top, rect.right-rect.left, rect.bottom-rect.top,
pParentWnd, AVICAP_WINDOW_ID);

if(!hCaptureWnd)
{
TRACE("CAviCap Window creation failed\n");
//iLastError=CAP_WINCREATION_FAILED;
return FALSE;
}

if( capDriverConnect(hCaptureWnd, DEFAULT_CAPTURE_DRIVER) )
{
AfxMessageBox("cap Driver connect ok");

}
if (capSetCallbackOnFrame(hCaptureWnd, _grabber_CallbackProc) )
{
AfxMessageBox("Callback ok");

}
if( capPreview(hCaptureWnd, FALSE))
{
AfxMessageBox("Preview ok");
}

return TRUE;
}

LRESULT PASCAL _grabber_CallbackProc(HWND hWnd, LPVIDEOHDR lpVHdr)
{
AfxMessageBox("grab");
return 0;
}
GeneralDatabase problems Pin
Anonymous6-Aug-03 4:01
Anonymous6-Aug-03 4:01 
GeneralEmptying editbox Pin
BoudewijnEctor6-Aug-03 2:53
BoudewijnEctor6-Aug-03 2:53 
GeneralRe: Emptying editbox Pin
Chris Meech6-Aug-03 3:10
Chris Meech6-Aug-03 3:10 
GeneralRe: Emptying editbox Pin
BoudewijnEctor6-Aug-03 3:23
BoudewijnEctor6-Aug-03 3:23 
GeneralRe: Emptying editbox Pin
David Crow6-Aug-03 3:10
David Crow6-Aug-03 3:10 
GeneralRe: Emptying editbox Pin
Vitali Halershtein6-Aug-03 3:20
Vitali Halershtein6-Aug-03 3:20 
GeneralCheckListBox event for checkbox Pin
rohit.dhamija6-Aug-03 2:24
rohit.dhamija6-Aug-03 2:24 
GeneralRe: CheckListBox event for checkbox Pin
David Crow6-Aug-03 2:48
David Crow6-Aug-03 2:48 
GeneralRe: CheckListBox event for checkbox Pin
rohit.dhamija6-Aug-03 3:09
rohit.dhamija6-Aug-03 3:09 
GeneralRe: CheckListBox event for checkbox Pin
David Crow6-Aug-03 3:15
David Crow6-Aug-03 3:15 
GeneralInserting extended character Pin
JensB6-Aug-03 2:06
JensB6-Aug-03 2:06 
Generalstatic system wide singleton Pin
Dangleberry6-Aug-03 1:58
sussDangleberry6-Aug-03 1:58 
GeneralRe: static system wide singleton Pin
jhwurmbach6-Aug-03 2:19
jhwurmbach6-Aug-03 2:19 
GeneralRe: static system wide singleton Pin
Ryan Binns6-Aug-03 2:25
Ryan Binns6-Aug-03 2:25 
GeneralRe: static system wide singleton Pin
Dangleberry7-Aug-03 3:03
sussDangleberry7-Aug-03 3:03 
GeneralRe: static system wide singleton Pin
Ryan Binns7-Aug-03 3:10
Ryan Binns7-Aug-03 3:10 
GeneralRe: static system wide singleton Pin
Vitali Halershtein6-Aug-03 3:05
Vitali Halershtein6-Aug-03 3:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.