|
hi,
the best way to capture video , use DirectShow , youwil find many samples and help in MSDN : DirectX -> DirectShow , u can also see DirectX 9 SDK it contains more new feature and may help u.
hatem
|
|
|
|
|
I agree that DirectShow is the best way to capture video. Besides you can use Video For Windows for the same job, it's much clumsier compared to DirectShow but does not require DirectX.
|
|
|
|
|
Baris Kurtlutepe wrote:
but does not require DirectX.
Since DirectX has been bundled with Windows ever since Win98, that's not really a problem any more
But then again, VFW doesn't require you to know COM
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
I am not sure that this will work with windows NT (if that is a concern of yours) because WinNT has directX 3...
John
|
|
|
|
|
Good point. I forgot about that.
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
In any case there is no reason why you cannot use MFC and DirectShow or VWF.
John
|
|
|
|
|
|
I have already downloaded and installed DirectX 9 SDK on my machine. Thanks a lots.
BTW, if the coding for video capturing should be done on Linux instead of Windows Platforms, anybody has any idea?
DJ
|
|
|
|
|
Hello,
Can you tell me what CRichEditCtrl's limitations are?
Thank you.
|
|
|
|
|
No design forum hey Chris?
Here's a puzzle for you guys & gals. Someone who's working on a domain model-based system will have a nice solution for me I hope...
The idea of building a domain model is so that the valuable parts of a system (i.e. business logic) are portable and isolated. However, I'm having trouble working out a nice way to move constraints that apply to multiple objects (multiple rows in the same table) away from the database and into the domain model.
For example, the constraint that two customers cannot be given the same names.
The obvious choice is a constraint on the table, however this moves logic out of the domain model.
Mediator classes etc are of no use, because checks cannot be made at the time of commit.
The problem might be associated with the implementation of Unit of Work that I'm using (much like Martin Fowler's) - checks need to be performed at some point in the commit process (any earlier and there is an opportunity for error) but before the end of the committing database transaction (otherwise no rollback is possible).
Hope this makes sense thanks if you can help.
Nick
|
|
|
|
|
Does anyone have any tricks for auto-restarting an app? I have a few settings in my app that require the user to close the app and then restart it for the settings to take affect. It would be nice to auto-restart for the user if needed. I know I could do it with a seperate exec but I was hoping to stay away from that.
Any ideas?
Rob
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
You could try executing your own program using ShellExecute() as the very last thing before you exit. Use GetModuleFileName(AfxGetInstanceHandle()) (if you're using MFC) to get your exe filename and path, or GetCommandLine() if you want to reuse all the same parameters as well. You can strip the parameters off if you don't need them.
Hope this helps
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
Hi,
where can i find 'Undelete/recover' files source code ?
thanks
Hari Krishnan
|
|
|
|
|
|
When i post code here and use the <code> </code> tags all it does in change the color of the font and I loose the tabs. How are some people able to change the background color from this blue to the codeproject beige and keep the formatting???????
|
|
|
|
|
Use the proper tag. Check the stylesheet.
--
"The money power of the country will endeavor to prolong its rule by preying upon the prejudices of the people until all wealth is concentrated in a few hands and the Republic destroyed."
-- Abraham Lincoln
|
|
|
|
|
Use the <pre></pre> tags
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
Thanks Ryan,
That did the trick. I actually spent time digging around the css for the <proper> tag. Now, don’t I feel stupid. I guess this proves I'm not a "web page programmer" - whatever they are.
-Kevin
|
|
|
|
|
You're welcome .
Don't worry about it. I had to ask as well .
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
Hi,
I am using VC++ and able to open an Excel file: File.xls (if it does not need a Password) with the following code:
<br />
CDatabase database;<br />
CString Xfile = "c:\\File.xls";<br />
<br />
sDriver = GetExcelDriver();<br />
if( sDriver.IsEmpty() )<br />
{<br />
AfxMessageBox("No Excel ODBC driver found");<br />
return;<br />
}<br />
<br />
sDsn.Format("ODBC;DRIVER=<br />
{%};DSN='';DBQ=%;PWD=ATC",sDriver,Xfile);<br />
database.Open(NULL,false,false,sDsn);<br />
However, with the same file, if I use Save As (with
Option) with Password:ATC, then when I run the same
program, it said: Could not decrypt file
Anyone knows what was wrong?
Many thanks
|
|
|
|
|
Hiya I have a string like:
char buffer[] = this,is,not,needed,12,grahamoj,34,this,is,not,needed,either;
What I need to do is search for 12 and then do a search after that for the 34, and extract the part in between them e.g "grahamoj" for displaying..
I have been using strstr to search the string but can't get it right.
Can anyone help me on this..
Thanks.
|
|
|
|
|
char buffer[] = "this,is,not,needed,12,grahamoj,34,this,is,not,needed,either";
char *p1 = strstr(buffer,"12,");
if(p1)
{
p1 += 3;
char *p2 = strstr(p1,",34");
if(p2)
{
*p2 = 0;
printf("%s",p1);
}
}
"I'm a bit bored at the moment so I'm thinking about writing a new programming language" - Colin Davies
My book :- Summer Love and Some more Cricket [New Win]
Review by Shog9 Click here for review[NW]
|
|
|
|
|
I don't get when the current selection is actually the new selection made by the user. When I'm calling GetCurSel()with my combo box, I'm getting the previous value that was in the combo box. I've tried it in OnOk, OnCurSel,OnSelchange and OnSelendok. Each time the currently selected item is seen as the previous item, not the new item that was selected? What's up with that?
Here's the code I'm trying to execute!
void RDialogForControlSegments::OnSelendokSegmentGainMatrixCombo() <br />
{<br />
this->m_dwGainMatrixId = <br />
this->m_ctrlSegmentGainMatrixCombo.<br />
GetItemData(this->m_ctrlSegmentGainMatrixCombo.GetCurSel());<br />
<br />
}
|
|
|
|
|
I figured it out. It was a LAME mistake!
|
|
|
|
|
Intellisense shows that I can access myPlines (myGroups[i]->)... why can't I access myVerts? (see bold code below). Shouldn't this work like a nested structure? Thanks for any help.
class Group
{
public:
list < Pline * > myPlines;
void addPline(Pline *p) {myPlines.push_back(p);}
}
class Pline
{
public:
void addVert(CPoint *v) {myVerts.push_back(v);}
void removeLastVert() {myVerts.erase(myVerts.end());}
list < CPoint * > myVerts;
};
**********FormView.h****************
Group *myGroups[10];
*********FormView.cpp ***************
FormView::OnDraw(CDC* pDC)
{
pDC->Polyline(myGroups[i]->myPlines[k]->?
}
**********************************************************
**********************************************************
I had hoped it'd work like this:
*************** Nest.h *******************************
typedef struct {
int *x1;
} One;
typedef struct {
One *x2;
} Two;
typedef struct {
Two *x3;
} Three;
class Nest
{
public:
Nest();
Three myNest;
virtual ~Nest();
};
************** Nest.cpp *********************************
Nest::Nest()
{
myNest->x3->x2->x1 = 10;
}
|
|
|
|