Click here to Skip to main content
15,902,737 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Thanks. I've tried your suggestion Pin
prasad_som28-Sep-05 19:28
prasad_som28-Sep-05 19:28 
GeneralHere is another part of code Pin
valerie9929-Sep-05 3:54
valerie9929-Sep-05 3:54 
QuestionSecurity Certificate Store(CertOpenStrore) Pin
sunit528-Sep-05 3:56
sunit528-Sep-05 3:56 
QuestionPowerPoint Device Context Hook? Pin
douglasjordan28-Sep-05 3:55
douglasjordan28-Sep-05 3:55 
Questionmouse driver source for a standard usb mouse Pin
Anonymous28-Sep-05 3:55
Anonymous28-Sep-05 3:55 
QuestionA program to monitor web pages/sites as and when u visit them... Pin
erajsri28-Sep-05 3:29
erajsri28-Sep-05 3:29 
QuestionHow to start yahoo Konfabulator widget from MFC ? Pin
Amarelia28-Sep-05 3:26
Amarelia28-Sep-05 3:26 
AnswerRe: How to start yahoo Konfabulator widget from MFC ? Pin
David Crow28-Sep-05 4:24
David Crow28-Sep-05 4:24 
AnswerRe: How to start yahoo Konfabulator widget from MFC ? Pin
Maximilien28-Sep-05 4:43
Maximilien28-Sep-05 4:43 
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 

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.