|
You can draw your bitmap directly on the printer dc handle
whitesky
|
|
|
|
|
Hi All,
I am stuck with ideas on how to gain access to the controls of a webcam.
What I want to achieve it to write a C++ program to capture images from a webcam.
Does anyone know of a nice and simple method I can do this.
I have been looking at TWAIN and WIA, but seems so complex to get started.
Cheers,
Chee
|
|
|
|
|
use OpenCV which is usefull toolkit to manipulate webcam.
You can find some tutorials from Google.
|
|
|
|
|
wow...thanks so much.
never knew about this openCV. not tried it yet, but seems to do the job for me.
Thanks again.
|
|
|
|
|
hi All,
Is there anybody having coding realted to enahnced write filter
Please send it urgently.
Thanks and regards
Pradeep
|
|
|
|
|
bannapradeep wrote: Is there anybody having coding realted to enahnced write filter
say that again ?
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
|
Is there anybody having coding realted to enahnced write filter
|
|
|
|
|
Is there anybody having coding realted to enahnced write filter
|
|
|
|
|
|
sorry there was typing mistake
Enhanced Write Filter coding
|
|
|
|
|
sorry there was typing mistake
Enhanced Write Filter coding
|
|
|
|
|
|
Hi
Can anyone tell me how i can set the position of the cursor in an Edit Control
i want to place a space after the user enters a full stop, im using the below, but this just
puts the cursor back to the start, rather than the end
CString csText, csText2;
m_c_sms.GetWindowText( csText );
csText2 = csText.Right(1);
if (csText2 ==".")
{
csText = csText+" ";
m_c_sms.SetWindowTextA(csText);
}
|
|
|
|
|
where you asking this yesterday[^] ??
also :
si_69 wrote: m_c_sms.SetWindowTextA(csText);
don't use SetWindowTextA() but SetWindowText() .
BTW, AFAIK, you can use CEdit::SetSel(end, end);
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
use m_edit.SetSel(pos, pos, TRUE);
Do the chickens have large talons?
|
|
|
|
|
Hai to all,
i am connecting to Access DataBase
In one case i want to delete all rows in my table
so that i have written a code like this
cData1 is a class derived from CRecordSet.
CData1 rs;
rs.Open();
rs.MoveFirst();
while(!rs.IsEOF())
{
rs.Delete();
rs.MoveNext();
rs.Update();
}
rs.Close();
It is giving error like this
Attempt to update or delete failed
can any one help me plsssssssss
thanks in advance
B.LakshmiPathiRao.
VC++ Programer
-- modified at 2:19 Thursday 20th July, 2006
|
|
|
|
|
LakshmiPathiRao wrote: rs.MoveNext();
rs.Update();
I believe these are in the wrong order.
Why not something simple like:
CDatabase db;
db.ExecuteSQL("DELETE FROM table);
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I guess it is to do with Update.
See MSDN help. It say's
Unlike AddNew and Edit, a call to Delete is not followed by a call to Update.
Fortitudine Vincimus!
|
|
|
|
|
How can I call a .exe file in a c/c++(not MFC) project?
thx,
L Zhang
|
|
|
|
|
ShellExecute
system
WinExec
CreateProcess
|
|
|
|
|
mwolf122 wrote: How can I call a .exe file
You mean launching an exe, no ? If yes, see the FAQ[^]
Cédric Moonen
Software developer
Charting control
|
|
|
|
|
|
|
I want to use timers do some actions.
I read about
UINT SetTimer(HWND hWnd, UINT nIDEvent, UINT uElapse, TIMERPROC lpTimerFunc );
versus the
CWnd::SetTimer, UINT nIDEvent, UINT uElapse, TIMERPROC lpTimerFunc );
There is a nice document here explaining some facts. However, I still have some questions about who is handling the timers.
I want to create and handle the timers inside a CScrollView (by mapping and overwriting the inherited CWnd::OnTimer(UINT nIDEvent) and not via a TIMERPROC.
However, I am not sure which timer creation function to use and what value will be good for the nIDEvent on them.
i. How do I guarantee that the CScrollView which created the timer is the one that receives the WM_TIMER message (and subsequently process it). Is it possible that the
WM_TIMER expiration message ends up on another queue (I found that this is possible for mouse messages) or only the creating window can get it?
ii. Is the nIDEvent identifier a system unique one or a view unique one? How do I get a sufficiently unique nIDEvent value to make sure that I am processing the right timer?
iii. Is it possible that my CScrollView will receive time outs (i.e. WM_TIMER messages) by other views or even other threads or applications and under which conditions? If yes what should I do with those timers?
iv. Any idea why SetTimer may fail? Is this due to a system limit on running timers or due to a non unique nIDEvent? How can I know?
Dimitris
|
|
|
|