|
Hi,
I am developing a program which is showing video from USB PC Camera.
I want to take picture while I'll press the button present on the USB PC Camera. I have tried a lot but I was unsuccessful. I have used the functions of VFW and done this application.
Any one suggest me how to take the button press event of button present on USB PC Camera????????
|
|
|
|
|
#1) Stop cross-posting.
#2) Read the guidelines[^].
#3) There's way too less information in your post for anyone to give you a helpful answer.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Hi,
I am raelly sorry as i cannot help but i need your help as i need a code take vedio from usb cam and make it pics.
so i would appretiate if u send my e-mail strongwave08@yahoo.com
|
|
|
|
|
hi,
how to load bitmap in picture box?
thanks in advance
|
|
|
|
|
The most popular "free" mail providers over the Internet are yahoo, hotmail, google and newly "live". But unfortunately I can't send them my email messages using smtp, because I don't know the address of their smtp servers. Can any one introduce me some of them that work with smtp clients like "telnet" or something (I mean those which don't need "webmail" pages over the Internet to send eMail to them)?
Thank you masters!
|
|
|
|
|
Have a look at Nish's article here[^].
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
I am using a CTreeCtrl control in my application.
It has a root with all other item as its child. Now what I want is that Whenver a child item is clicked its value should be printed in a edit box.
For this I am using
ON_NOTIFY(NM_CLICK, IDC_TREE_KEN_PUSH,OnSelchangedTreectrl)
event handler and the code is as follows:
void CChatDlg::OnSelchangedTreectrl(NMHDR* pNMHDR, LRESULT* pResult)
{
NM_TREEVIEW* pNMTreeView = (NM_TREEVIEW*)pNMHDR;
HTREEITEM hItem = m_ctrlKenPush.GetSelectedItem();
CString strItemText = m_ctrlKenPush.GetItemText(hItem);
if(strItemText!=_T("General"))
SetDlgItemText(IDC_EDIT,strItemText);
*pResult = 0;
}
But the problem is that when i click a child node its parent values gets printed .
Please tell whats the problem.
|
|
|
|
|
Hi All,
Is there any facility/API available on windows which will give me file copying functionality where number of copy operations involved are minimal?
Usually kernel mode APIs and DMA stuff creates few number of redudent buffer copy operations. Can we avoid it?
On unix they have such functionality
http://www.linuxjournal.com/article/6345[^]
|
|
|
|
|
|
Hi again, I remembered a way to copy files across network:
TransmitFile Function
The TransmitFile function transmits file data over a connected socket handle. This function uses the operating system's cache manager to retrieve the file data, and provides high-performance file data transfer over sockets.
Note This function is a Microsoft-specific extension to the Windows Sockets specification.
http://msdn.microsoft.com/en-us/library/ms740565(VS.85).aspx[^]
Hope this one works...
|
|
|
|
|
Hey,
That is really a good information. Thanks.
|
|
|
|
|
hi,
how to draw line and a small circle below that line on a dialog based application? i want to display 8 such lines on a dialog.
thanks in advance
|
|
|
|
|
Handle the WM_PAINT message.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Are you sure you want to draw directly on the dialog ? In general, it doesn't make a lot of sense. A better approach would be to create a custom control and delegate the work to it.
What are you trying to achieve exactly ?
|
|
|
|
|
hi Cedric,
thx for ur reply.
i want to display a line(straight line not dotted as shown below) and 1 small circle as shown below:
|
|
|
O
|
|
|
|
|
Ok but this doesn't answer my question. Do you really need to draw on the dialog itself rather than using a custom control ? Here[^] is an article about creating custom controls. It is much cleaner than drawing directly on the dialog.
|
|
|
|
|
Hi all,
I m using two COleDateTimeCtrl,i have some records i want to filter these records according to date.
COleDateTime from_date;
COleDateTime to_date;
COleDateTime Record_date;
for example: i want to filter records from 15/oct/2008 to today.
today record is present.
i m using COleDateTime operators.
filter like this;
if(from_date>=Record_date && to_date<=Record_date)
{
AfxMessageBox("Record Found");
}
its not working correct for today record.
if record date is greater than today date,than its working fine.
please tell me what can i do?
thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
"_$h@nky_" wrote: from_date>=Record_date
Your record date should be smaller than the 'from_date' (so earlier than the from_date) ?
"_$h@nky_" wrote: to_date<=Record_date
Your record should be bigger than the 'to_date' (so, after the to_date) ?
Think a bit about your checks.
|
|
|
|
|
thnks
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
"_$h@nky_" wrote: if(from_date>=Record_date && to_date<=Record_date)
Funny.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hello to all,
I have created one MDI application and in this application I want to remove maximize button of main application window with its box also,means I want to keep only minimize and close button there.I wrote following code in CMainFrame::PreCreateWindow() function,
BOOL CMainFrame::PreCreateWindow()
{
if( !CMDIFrameWnd::PreCreateWindow(cs) )
return FALSE;
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
cs.style = WS_OVERLAPPED | WS_CAPTION | FWS_ADDTOTITLE
| WS_THICKFRAME | WS_SYSMENU | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_MAXIMIZE;
cs.style &= ~WS_MAXIMIZEBOX;
return CMDIFrameWnd::PreCreateWindow(cs);
}
But the problem is that it is not removing maximize button completly,it is only disabling maximize button there, though now I can not operate maximize button but I can see maximize button and its box there which is disabled.I want to remove that box and maximize button completly,can anyone help me how to do it?
Thanks and Regards,
Anay
|
|
|
|
|
AFAIK you cannot do that. MAXIMIZE & MINIMIZE buttons are a 'both or none' option.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
AnayKulkarni wrote: cs.style = WS_OVERLAPPED | WS_CAPTION | FWS_ADDTOTITLE
| WS_THICKFRAME | WS_SYSMENU | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_MAXIMIZE;
cs.style &= ~WS_MAXIMIZEBOX;
Why are you adding the WS_MAXIMIZEBOX style and then immediately deleting it?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Try following
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
cs.style &= ~(WS_MINIMIZEBOX|WS_MAXIMIZEBOX);
return CFrameWnd::PreCreateWindow(cs);
}
|
|
|
|
|
Hello,
I made a dll that exports several functions, 2 of them are:
-dllCallCreateWindow
-dllCallHandleMessages
My console application calls above two functions. Now, in my console application, I want to be able to attach child dialogs to my CFrameWnd. How can I do that?
The idea is to have my dll creating a CFrameWnd and running with a default behaviour, but if the user wants to customize the CFrameWnd, he should be able to add child dialogs created by himself in the console application.
I can create dialogs in the console application, but I cannot specify the parent window (If I use the CWnd object returned by the dllCallCreateWindow, the application crashes).
Any help is greatly appreciated
|
|
|
|