Click here to Skip to main content
15,889,116 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionNeed help: Printer Lifemeter Pin
eXtwo28-Sep-05 3:21
eXtwo28-Sep-05 3:21 
AnswerRe: Need help: Printer Lifemeter Pin
David Crow28-Sep-05 4:28
David Crow28-Sep-05 4:28 
QuestionHow to delete entry in start menu? Pin
fggfhfhgfg28-Sep-05 2:58
fggfhfhgfg28-Sep-05 2:58 
AnswerRe: How to delete entry in start menu? Pin
David Crow28-Sep-05 3:13
David Crow28-Sep-05 3:13 
GeneralRe: How to delete entry in start menu? Pin
Arno The Avatar28-Sep-05 4:05
sussArno The Avatar28-Sep-05 4:05 
QuestionHelp me with displaying capture image Pin
SimCom28-Sep-05 2:06
SimCom28-Sep-05 2:06 
AnswerRe: Help me with displaying capture image Pin
Cedric Moonen28-Sep-05 2:26
Cedric Moonen28-Sep-05 2:26 
GeneralRe: Help me with displaying capture image Pin
SimCom28-Sep-05 2:37
SimCom28-Sep-05 2:37 
Webcam is the variable of the type CAvicap class, like this:
CAvicap Webcam;

and the method Create is as follow:

BOOL CAviCap::Create(DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, BOOL fAutoSize)
{
ASSERT(!GetSafeHwnd());

if(GetSafeHwnd()) {
iLastError=CAP_CREATE_DUP;
return FALSE; //already connected, can't connect twice!
}

_autosize = fAutoSize;

HWND hWnd=capCreateCaptureWindow("AviCap_Basic",
dwStyle, rect.left, rect.top, rect.right-rect.left, rect.bottom-rect.top,
pParentWnd->GetSafeHwnd(), AVICAP_WINDOW_ID);

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

//subclass standard window
SubclassWindow(hWnd);
::SetClassLong(hWnd, GCL_STYLE, ::GetClassLong(hWnd,GCL_STYLE)|CS_DBLCLKS);


#ifdef ON_CONNECT_CHECK_DRIVERLIST
_getDrvList();
#endif

return TRUE;
}

If my application works, I forget all my problems.
GeneralRe: Help me with displaying capture image Pin
Cedric Moonen28-Sep-05 2:49
Cedric Moonen28-Sep-05 2:49 
GeneralRe: Help me with displaying capture image Pin
SimCom28-Sep-05 4:35
SimCom28-Sep-05 4:35 
Questionlaunching application from html page Pin
vyjesh28-Sep-05 2:03
vyjesh28-Sep-05 2:03 
AnswerRe: launching application from html page Pin
Mircea Puiu28-Sep-05 2:33
Mircea Puiu28-Sep-05 2:33 
GeneralRe: launching application from html page Pin
mikanu28-Sep-05 5:24
mikanu28-Sep-05 5:24 
GeneralRe: launching application from html page Pin
vyjesh30-Sep-05 3:01
vyjesh30-Sep-05 3:01 
AnswerRe: launching application from html page Pin
mikanu30-Sep-05 6:19
mikanu30-Sep-05 6:19 
QuestionClipboard issue. Pin
Abyss28-Sep-05 1:41
Abyss28-Sep-05 1:41 
AnswerRe: Clipboard issue. Pin
S Douglas28-Sep-05 23:33
professionalS Douglas28-Sep-05 23:33 
Questionwant to use a CDialogBox in MFC Pin
vikas amin28-Sep-05 1:37
vikas amin28-Sep-05 1:37 
AnswerRe: want to use a CDialogBox in MFC Pin
toxcct28-Sep-05 1:49
toxcct28-Sep-05 1:49 
GeneralRe: want to use a CDialogBox in MFC Pin
vikas amin28-Sep-05 3:49
vikas amin28-Sep-05 3:49 
AnswerRe: want to use a CDialogBox in MFC Pin
S Douglas28-Sep-05 23:45
professionalS Douglas28-Sep-05 23:45 
QuestionFinding the current active button... Pin
u6ik28-Sep-05 1:35
u6ik28-Sep-05 1:35 
AnswerRe: Finding the current active button... Pin
fat_boy28-Sep-05 2:01
fat_boy28-Sep-05 2:01 
AnswerRe: Finding the current active button... Pin
Cedric Moonen28-Sep-05 1:59
Cedric Moonen28-Sep-05 1:59 
AnswerRe: Finding the current active button... Pin
u6ik28-Sep-05 2:27
u6ik28-Sep-05 2:27 

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.