|
|
I can't find IPAS_NOVALIDATE defined in any of my platform SDK/MSDN files.
What is it?
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
I am playing movie in directshow . now I want to fastforward the movie
2x 3x 4x etc . also I want to rewind the movie. can any body tell me
how it is possible
RajeshGupta
|
|
|
|
|
On the MCI functions you can use of MCI_DGV_SET_SPEED see MCI_SET[^]
|
|
|
|
|
I want to fastforward and rewind in localfile scenario . i .e
I am using the .asf or .wmv file .
RajeshGupta
|
|
|
|
|
|
Hi,
I know that but problem is that when I set g_pSeek->SetRate(2.0);
it fast forward for few milli seconds then again playback with
normal speed . again tell me how to rewind the playback.
RajeshGupta
|
|
|
|
|
That's going to depend on the filters in the graph.
For example, if you are playing ASF files with the Windows Media ASF Reader filter, then
SetRate() isn't supported for any speeds except 1.0.
IMediaSeeking::GetCapabilities() will give you info on supported seeking capabilities (including
reverse playback).
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
I think use of MCI_DGV_SET_SPEED is easy,isnt ?
|
|
|
|
|
Yes but the OP is using DirectShow
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Yeah you right "playing movie in directshow "
-------------
Did you see Lounge forum "Why a career in computer programming sucks"? what do you think?
|
|
|
|
|
WhiteSky wrote: Did you see Lounge forum "Why a career in computer programming sucks"? what do you think?
Yes. I pretty much disagree with all 10 points. I personally haven't experienced any of those
I love to code. So much so, way back when, I did it on paper for a couple years before I could
afford my first PC. I did it as a hobby when I was in a completely different profession.
I guess if anyone relates to those items, they probably ARE in the wrong profession.
Cheers!
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
I cant imagine I leave programming also I think best enjoy write code and find problems so I agree with you and I think programming is a nice work.
|
|
|
|
|
WhiteSky wrote: I cant imagine I leave programming
Especially to be a database administrator!
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Mark Salsbery wrote: Especially to be a database administrator
Well said
|
|
|
|
|
I have a class whose base calss is CListCtrl,I want to make one list to draw every thing by itself,so I also wrote a CMyHeaderCtrl and CMyScrollbar class.
I modified the list's style to Owner draw,in the function ::OnPaint()I used these code lines to make it draw it items:
const MSG* msg=GetCurrentMessage();<br />
DefWindowProc(msg->message,msg->wParam,msg->lParam);
but where would be a assert occur.
somebody would tell me why?
Thanks.
BestRegards
|
|
|
|
|
kcynic wrote: but where would be a assert occur.
somebody would tell me why?
Not without more information. 99.99% of the time the ASSERT() statement itself will tell you exactly what is wrong.
Darker than a black steer's tookus on a moonless praire night
Within you lies the power for good, use it!!!
|
|
|
|
|
what is a virtual key code for number keys.
Like VK_TAB for tab .
for 0 - 9 what is a key code.
|
|
|
|
|
|
|
Hi all,
i have made a worker thread ,that worker thread is called from a function every time a condition is met.So i have several instances of same thread running at same time.So i want to know that if i want to close all instances of that thread, single AfxEndThread will close the threads or i have to use some other method.
thanks in advance
|
|
|
|
|
my problem got solved using TerminateThread. but the new problem is when thread is not running and the function calls TerminateThread it gives debug asserstion failed error. i have also tried using:
if(::GetExitCodeThread(CloseTh->m_hThread,0))
::TerminateThread(CloseTh->m_hThread,0);
but it also gives debug assertion failed may be i m not using it correctly.
Can annybody help me in this
thanks in advance
|
|
|
|
|
No. Never use TerminateThread unless there is a strong reason for that. TerminateThread simply makes the system to kill the thread whereas the thread never gets known about its death.
--
=====
Arman
|
|
|
|
|
|
Actually no need to use AfxEndThread at all. The proper way to exit a thread is to inform it about that. Which in turn will return from the controlling function.
Please see this article[^]. It describes the way how to do what you wonder now.
Sortly, here you have a synchronization issue. Prepare an event which would be listened by all the threads. Then inside some other thread [I guess a UI thread] you would pulse the event and thus let the threads to exit properly.
--
=====
Arman
|
|
|
|