|
hello all:
i want to build a filtergraph to convert my video from avi format into mpg format,how to build that graph,give me some good idea or a figure to show that graph,thank you
henry
|
|
|
|
|
Something like:
File Source -> AVI Splitter -> AVI Decompressor -> MPEG Encoder -> File Writer
There's no MPEG encoders included with DirectShow (because of licensing).
ASF (.wmv) file format has MPEG-4 encoder/decoder though.
|
|
|
|
|
which asf filter i can use,
i tried but i failed,
sos~~~~
|
|
|
|
|
|
By the way, you ARE using graphedit.exe to test graphs, right?
Much easier than having to try different filters in code
|
|
|
|
|
yes,but after that test,i need to try filters in code,5555555
thanks a lot
|
|
|
|
|
Hello friends
could any body tell me how i can compile any VC++ project either Dialog based or MDi according to my knowledge it should be generalized i tried by MSDN help i set the VC++ enviorment by executing vcvars32.bat but when i comiled any file i got error - cannot open input file BINMODE.OBJ
and this already available in system i think i missed some step. I tried it for dialog based project
if any body knows any thing then plz reply me as soon as possible.
My mainly concern to dialog based project
Regards
Ruchi Bansal
|
|
|
|
|
try this
msdev yourproject.dsw /make ALL /REBUILD
nave
|
|
|
|
|
Hi all, i was wondering how do i check for individual bits in a byte. Like if i wanted to check if the 3rd bit in a byte was 1 or 0, how do i do that in c++?
|
|
|
|
|
You can use binary operators (such as and ) with proper operands.
for example:
bool checkbit2(unsigned char b)
{
if ( b & 0x04) return true else return false;
}
returns true if third bit (which is bit 2) of b is set (note the operand 0x04 , that is binary 00000100 ).
hope that helps.
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.
|
|
|
|
|
Hi,
count the bits: 8-7-6-5-4-3-2-1
if(myByte & 0x4)
{
}
else
{
}
HTH
|
|
|
|
|
How to send a message to a tree control to select an item inside it( I have the handle to the tree view in my hands)?
SYAMLAL
|
|
|
|
|
Hi,
SendMessage(hWndTreeView, TVM_SELECTITEM, ActionFlag, hTreeItem);
TVM_.... -> TreeViewMessage
HTH
|
|
|
|
|
Hi Frank
I know the prototype of send message,,,But can U explain the 4th parameter in particular..
What I am trying to do is: To automate a local ghosting tool
The tool is having a window upon which the treeview resides
Items in tree view:
Harddisk
DellUtility
C:
D:
All these are selected by default
I want to select the C: only,,and that I have to do from the code
I have the handle to the tree view(Obtained using EnumChildWindows())
I think two ways of sending message is there:
1)Get handle to the item"C:" of type HTREEITEM and send a mouse click message
2)Get handle to the item "C:" of type HTREEITEM and send a select message
But how to do it?????I tried in different ways ,,but no hope....
Pls help me,,,,
SYAMLAL
|
|
|
|
|
SyamlalS wrote: ,,,But can U explain the 4th parameter in particular..
Its handle to tree item.
Its can be obtained using any of CTreeCtrl functions(GetNextItem,GetChildItem etc,).
|
|
|
|
|
Even GETITEM,GETNEXTITEM etc requires a TVITEM parameter, which again contains a handle to tree item(hItem field),So how can I get the first item???
If I get handle to the first item I can apply GETNEXTITEM and reach at the particular(C item...
Pls do reply
Thanx to Prasad_som and Frank K and all others who are willing to reply for showing interest in my request,,,,
SYAMLAL
|
|
|
|
|
You already told in original post, that you have window handle,
This snippet may help you to understand traversing tree control. It gets first child of root item and traverse its children.
HTREEITEM hRoot = pCtrl->GetRootItem();
if (hRoot == NULL)
MessageBox(_T("some problem"));
else
{
}
HTREEITEM hChild = pCtrl->GetNextItem(hRoot,TVGN_CHILD)
if (pmyTreeCtrl->ItemHasChildren(hChild))
{
HTREEITEM hNextItem;
HTREEITEM hChildItem = pmyTreeCtrl->GetChildItem(hmyItem);
while (hChildItem != NULL)
{
hNextItem = pmyTreeCtrl->GetNextItem(hChildItem, TVGN_NEXT);
hChildItem = hNextItem;
}
}
|
|
|
|
|
Dear Prasad,,
I have the handle to the tree view and not a pointer
So I can't invoke the GetRootItem function
Expect ur reply..
SYAMLAL
|
|
|
|
|
SyamlalS wrote: I have the handle to the tree view and not a pointer
CTreeCtrl *pTreeCtrl = dynamic_cast<CTreeCtrl*> (CWnd::FromHandle(hWndYouHave));
|
|
|
|
|
Thanx a lot ,,Prasad...
dynamic cast was not required
This is enough:
CTreeCtrl* pCtrl = (CTreeCtrl*)(CWnd::FromHandle(HandleToTreeView));
NeWay thaks a lot again.....
SYAMLAL
|
|
|
|
|
SyamlalS wrote: dynamic cast was not required
This is enough:
CTreeCtrl* pCtrl = (CTreeCtrl*)(CWnd::FromHandle(HandleToTreeView));
This works, but C++ standard encourages using dynamic_cast or other operators(reinterpre_cast,static_cast ) . And old function style casts should be avoided wherever possible.
|
|
|
|
|
Hi!!!
I have one simple question..
How i can compare strin..
code is
if(x1.compareNocase(s1 || s2)
{
do something
}
Here if x1 is equal to s1 or s2 then do something in my code..
How i can compare..??
as in || is right or wrong??
Shah Satish
|
|
|
|
|
Hi,
You trying to be too fast
if ( x1.CompareNoCase( s1 ) || x1.CompareNoCase( s2 ) )
{
...
}
-----------
Mila
|
|
|
|
|
I have code..
If(Loopname.CompareNocase(x1)==0 || Loopname.CompareNocase(mytext->contents)==0).
but its not working
|
|
|
|
|
Hi,
hm... interesting - and what type are x1 and mytext->contents -> is it CString too ? (I'm thinking about e.g. you use VS2005 where default is UNICODE defined and you try to compare default CString with char *)
Besides you can check what exactly return particular comparing functions (if equal should returns NULL)
-----------
Mila
|
|
|
|