Click here to Skip to main content
15,922,145 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How do you define "High level" and "Low level" abstractions? Pin
Joe Woodbury18-Oct-03 10:52
professionalJoe Woodbury18-Oct-03 10:52 
AnswerRe: How do you define "High level" and "Low level" abstractions? Pin
joshfl23-Oct-03 10:42
joshfl23-Oct-03 10:42 
GeneralRe: How do you define "High level" and "Low level" abstractions? Pin
Link260023-Oct-03 11:14
Link260023-Oct-03 11:14 
GeneralWin32 toolbar problem/question Pin
Jim Crafton18-Oct-03 5:28
Jim Crafton18-Oct-03 5:28 
GeneralRe: Win32 toolbar problem/question Pin
Chris Richardson18-Oct-03 12:11
Chris Richardson18-Oct-03 12:11 
GeneralWasabi SDK Pin
_Digger_18-Oct-03 5:10
_Digger_18-Oct-03 5:10 
GeneralRe: Wasabi SDK Pin
User 665818-Oct-03 8:07
User 665818-Oct-03 8:07 
QuestionIMediaControl :: GetState() errors in DirectShow??? Pin
Saurabh_Delhi18-Oct-03 3:35
Saurabh_Delhi18-Oct-03 3:35 
IMediaControl :: GetState() errors in DirectShow???
------------------------------------------------

Hi All,

I want to use GetState() method of IMediaControl. But could not able declare its 2nd argument correctly. Here is my code:

HRESULT hr;
hr = pMC->Run();
if (hr == S_FALSE)
{
FILTER_STATE filterState; // or _FilterState filterState; ????????
hr = pMC->GetState(1000, (FILTER_STATE)filterState);

if (hr == S_OK)
{
...
}
}

It gives following error:
error C2664: 'GetState' : cannot convert parameter 2 from 'enum _FilterState' to 'long *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast.

If I declare a pointer "FILTER_STATE *filterState;", it gives this error:
error C2440: 'type cast' : cannot convert from 'enum _FilterState *' to 'enum _FilterState'.
There is no context in which this conversion is possible.

----------------- More queries --------------------------
1. Run() is returning "S_FALSE". What can be reasons of it? (RenderFile() is returning "VFW_S_AUDIO_NOT_RENDERED").
2. Value of HRESULT is long (262744 in returned by RenderFile()). How can I display its error string (i.e. VFW_S_AUDIO........)?

Thanx in advance.
Regards,
Saurabh
AnswerRe: IMediaControl :: GetState() errors in DirectShow??? Pin
Alexander M.,18-Oct-03 12:55
Alexander M.,18-Oct-03 12:55 
GeneralStill problems with Points and CRect. Help please !! :( Pin
Rafael Fernández López18-Oct-03 3:32
Rafael Fernández López18-Oct-03 3:32 
GeneralRe: Still problems with Points and CRect. Help please !! :( Pin
includeh1018-Oct-03 6:11
includeh1018-Oct-03 6:11 
GeneralRe: Still problems with Points and CRect. Help please !! :( Pin
Rafael Fernández López18-Oct-03 12:30
Rafael Fernández López18-Oct-03 12:30 
GeneralRe: Still problems with Points and CRect. Help please !! :( Pin
Neville Franks18-Oct-03 12:45
Neville Franks18-Oct-03 12:45 
GeneralRe: Still problems with Points and CRect. Help please !! :( Pin
Rafael Fernández López19-Oct-03 2:01
Rafael Fernández López19-Oct-03 2:01 
GeneralIs this correct (modeless dialog box) Pin
Rickard Andersson2018-Oct-03 3:22
Rickard Andersson2018-Oct-03 3:22 
GeneralRe: Is this correct (modeless dialog box) Pin
includeh1018-Oct-03 6:23
includeh1018-Oct-03 6:23 
GeneralRelease build trouble Pin
Luuk Weltevreden18-Oct-03 1:50
Luuk Weltevreden18-Oct-03 1:50 
GeneralRe: Release build trouble Pin
Luuk Weltevreden18-Oct-03 2:44
Luuk Weltevreden18-Oct-03 2:44 
Questionprinter switched on or not? Pin
murali_utr18-Oct-03 0:47
murali_utr18-Oct-03 0:47 
GeneralMFC Dailog IDD Pin
cberam18-Oct-03 0:46
cberam18-Oct-03 0:46 
GeneralRe: MFC Dailog IDD Pin
murali_utr18-Oct-03 0:49
murali_utr18-Oct-03 0:49 
GeneralMicrosoft Access Driver Pin
OTVAC30517-Oct-03 23:19
OTVAC30517-Oct-03 23:19 
GeneralRe: Microsoft Access Driver Pin
Alexander M.,18-Oct-03 12:43
Alexander M.,18-Oct-03 12:43 
GeneralPoints and CRect Pin
Rafael Fernández López17-Oct-03 22:30
Rafael Fernández López17-Oct-03 22:30 
GeneralRe: Points and CRect Pin
Neville Franks17-Oct-03 23:18
Neville Franks17-Oct-03 23:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.