|
Does someone knows why StretchBlt returns 0
when copying a bitmap on a printer device context?
It works for many printers but not for the one
I've to use!!
Are there some printers settings to do ?
Thanks a lot !
|
|
|
|
|
StretchBlt returns Nonzero if the bitmap is drawn; otherwise 0.
Not all devices support the StretchBlt function. To determine whether a device supports StretchBlt, call the GetDeviceCaps member function with the RASTERCAPS index and check the return value for the RC_STRETCHBLT flag.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Thanks, but I've already checked that
flag and it seems to be ok !
|
|
|
|
|
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
|
|
|
|