|
Just wanting some feedback on different video capture techniques. I have used AVICap, VisionSDK, and the DirectShow exaamples to test different way of video capture. All work great, but the problem I have with all of them is that they eat cpu time like crazy. The web cam software I use now is written in Delphi(did not write nor have source) and uses VFW and it only takes about 10-15% cpu time on my PIII600mhz capturing about 20 fps, but all the samples I've tried using the above options take about 40-50% cpu time on the same machine with the same frame rate. Just wondering of any optimizations or opinions on the above mentioned methods.
Thanks for comments,
Joshua
BTW: The web cam software I use now is ConquerCam. Good no nag shareware. Let me know if you know of any better web cam software.
|
|
|
|
|
If you slap a CListCtrl on top of a dialog in the resource view and then you want to add WM_HSCROLL and WM_VSCROLL programatically, how would you do it?
I noticed that you can add the extended styles programmatically, but how would you scroll styles when there is no Create calls needed?
|
|
|
|
|
ModifyStyle and ModifyExStyle
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
In what conditions a delete can make a debug assertion fail
with this message:
_BLOCK_TYPE_IS_VALID(pHead->nBlockUse)
________________________________________________
Those that have really found the meaning, dont find it meaningful
|
|
|
|
|
Possibly when you call delete twice on the same pointer.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Could anybody tell me how to handle EN_SETFOCUS in a CRichEditCtrl???
I've tried it in a CEdit and it works fine but when I use it in a CRichEditCtrl it doesn't work.
Thanks in advance,
|
|
|
|
|
|
Gracias, ya me habia supuesto que era algún tipo de bug de Microsoft.
|
|
|
|
|
Hi...
I have a webserver on which I use a Perl Script to do WebBased file upload.
The script is called upload.pl. If I call the script http://server/cgi-bin/upload.pl is shows 3 EditBoxes...
1. UID
2. Password
3. Path of the file to upload !!!
I want to call the script with a Dialog-Based Application (Visual C++)...
first I tried to simply call the upload-script by
http://server/cgi-bin/upload.pl?uid=xxx&pwd=yyy&file=C:\autoexec.bat&submit=Upload
But this won't work... I sniffed on my Ethernet Card to look what my PC sends to the WebServer !!!
Then I see that the client sends not the FileName c:\autoexec.bat but the DATA of c:\autoexec.bat to the webserver !!!
The upload Script calls a
How could I send the File to the WebServer with Visual C++ (binaries,text) ???
Have anyone an idea ??? or knows sources on the www where I will find a solution ???
Please help...
cu Agent_White
|
|
|
|
|
does really nobody have a tip for me
cu Agent_White
|
|
|
|
|
You need to do a HTTP POST operation containing the file data. See the HTML standard to see how the response should be formatted.
|
|
|
|
|
Thanx for your answer... the URL was is a good place to look at !!!
But there are still problems left... because I have no experience with wininet at all !!!
In my opinion... to solve the problem...
I must read the Data of the file in a buffer (no problem) and then send it with the HTTP request (big problem) !!!
Maybe someone knows a source which posts a file to a server ???
cu Agent_White
|
|
|
|
|
May I know the algorithm or the procedure to combine two different TIFF Images into one single TIFF Image?? ALso I'm specific in combining the two pages of single TIFF image into one single Page...so, i would appreciate if someone could reply me
thanks
sukesh sabbani
|
|
|
|
|
From memory GDI+ will read and write TIFF. Then it's a case of using BitmapData to step through both bitmaps and combine the data as you see fit.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
Try www.6ixsoft.com. FreeImage has a MergeImages function (or something like that).
|
|
|
|
|
hi all,
i am in a situation that there is a higher priority thread for wait event from a transmission bus. the bus will receive large amount of data in short period and go back to silent. it will miss data if i put too much processing code in that thread. so, i put the processing code in a new thread.
so, could anyone tell me any method to pass data to other thread savely ( make sure all data is received by the processing thread. if i use filemapping or global variable, i can't sure the processing thread can received b4 new data is received from receiving thread but i can't wait for processing thread to finish its work ) anyone can help?
thanks,
jim
|
|
|
|
|
Derive a new class from stl::queue and put in locking in push_front and pop_back. Make the queue known to both your threads. Rock'n'Roll.
|
|
|
|
|
How to find the end points of all lines (hatch) filling a polygon?. The lines are inclined with an angle and have a constant spacing between them.
|
|
|
|
|
Rotate and scale your polygon so that the hatching is transformed to a horizontal hatching with spacing 1. Then, for each segment of your polygon, points within it with integer y are hatching end points. Transform them back and you're done.
For a hatching angle θ and a spacing s, the resulting transformation is:
x' = ( x cos θ + y sin θ) / s,
y' = (-x sin θ + y cos θ) / s.
And the reverse transformation is:
x = ( x' cos θ - y' sin θ) · s,
y = ( x' sin θ + y' cos θ) · s.
Good luck.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
combobox has no getitemtext function?
i must save its copy as item's data?
t!
|
|
|
|
|
You must use GetLBText method:
CComboBox combo;
CString str;
combo.GetLBText( combo.GetCurSel(), str );
in "str" you have items data.
|
|
|
|
|
to get proper item's text depends on initial ownerdrawfixed flag
is it normal?
(btw. now i found mfc ignores later changes of CBS_OWNERDRAWFIXED for DrawItem (not)calls)
t!
|
|
|
|
|
problem found
with owner draw must have has strings too
fine day
t!
|
|
|
|
|
I have a CRichEditCtrl in a CView class. I need to know when the control gets the focus and I don't know how to do it.
This is what I've done so far:
//On MyView.h
afx_msg void OnStupidCtrlGetFocus(NMHDR* pNMHDR, LRESULT* pResult);
//On MyView.cpp
ON_NOTIFY(NM_SETFOCUS, ID_STUPIDRICHEDITCTRL, OnStupidCtrlGetFocus)
void CMyView::OnStupidCtrlGetFocus(NMHDR* pNMHDR, LRESULT* pResult)
{
//Do some work
}
But it doesn't work !!! what am I doing wrong ????
Thanks in advance..
|
|
|
|
|
Hi all,
I create a button dynamically but as it is now, I create the button ID myself like this cause in this case I can't use the editor to create it:
#define ID_MY_BUTTON 33333
But how do I ensure a unique ID for this dynamically created button?
/Tommy
|
|
|
|