Click here to Skip to main content
15,925,255 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How can I update the statusbar info of the MainFrame from the ChildFrame Pin
bob1697227-Apr-07 14:25
bob1697227-Apr-07 14:25 
QuestionRegarding MSXML3.0 [modified] Pin
voorugonda prashanth27-Apr-07 2:15
voorugonda prashanth27-Apr-07 2:15 
QuestionRe: Regarding MSXML3.0 Pin
bob1697227-Apr-07 4:06
bob1697227-Apr-07 4:06 
Questionfile read problem Pin
david bagaturia27-Apr-07 1:55
david bagaturia27-Apr-07 1:55 
AnswerRe: file read problem Pin
_AnsHUMAN_ 27-Apr-07 2:15
_AnsHUMAN_ 27-Apr-07 2:15 
GeneralRe: file read problem Pin
david bagaturia27-Apr-07 2:24
david bagaturia27-Apr-07 2:24 
AnswerRe: file read problem Pin
kakan27-Apr-07 4:00
professionalkakan27-Apr-07 4:00 
Questionhr = pSrcAud->SetInput(bsInputFile) and hr = pEncoder->PrepareToEncode(VARIANT_TRUE); are not working Pin
amitmistry_petlad 27-Apr-07 1:34
amitmistry_petlad 27-Apr-07 1:34 
both return handle fail.

what does it mean?

I am using the encoder 9 sdk. I have pick the sample application which comes with sdk .
Now when i use the inbuitl sample . it encode the file
but when i use that one for changing the following things it gets return handle fail.

Look at the change:

In sample application
---------------------
if ( SUCCEEDED( hr ) )
    {
        hr = pSrcAud->SetInput(CComBSTR("C:\\InputFile.mpg")); //this is  a standard  file
    }
    if ( SUCCEEDED( hr ) )
    {
        hr = pSrcVid->SetInput(CComBSTR("C:\\InputFile.mpg"));
    }


my change
---------------

WCHAR               * pwszOutFile = NULL;
WCHAR               * pwszInFile = NULL;


//input file and output file come from console 
 for(int i=0;i<argc;i++)
	{

	      if( 0 == _tcsicmp( argv[i], _T( "-i" ) ) )
            {
                i++;
                if( i >= argc )
                {
                    break;
                }
				
                hr = ConvertTCharToWChar( argv[i], &pwszInFile );
                if( FAILED( hr ) )
                {
                    break;
                }
            }
            else if ( 0 == _tcsicmp( argv[i], _T( "-o" ) ) )
            {
                i++;
                if( i >= argc )
                {
                    break;
                }

                hr = ConvertTCharToWChar( argv[i], &pwszOutFile );
                if( FAILED( hr ) )
                {
                    break;
                }
            }
		

	}



CComBSTR bsInputFile;
 
 bsInputFile.Attach ( W2BSTR(pwszInFile ) );

if ( SUCCEEDED( hr ) )
    {
       <code> hr = pSrcAud->SetInput(bsInputFile);  //Handle return hr=-2147012890 </code>
    }

I had try to find so many times in the google, but unable to find the solution.

the preparetoEncodemethod works for console but when i am using the same thing for the window.
it give me the E_UNEXPECTED result in the hr.





"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India

AnswerRe: hr = pSrcAud->SetInput(bsInputFile) and hr = pEncoder->PrepareToEncode(VARIANT_TRUE); are not working Pin
Mark Salsbery29-Apr-07 9:20
Mark Salsbery29-Apr-07 9:20 
GeneralRe: hr = pSrcAud->SetInput(bsInputFile) and hr = pEncoder->PrepareToEncode(VARIANT_TRUE); are not working Pin
amitmistry_petlad 29-Apr-07 17:51
amitmistry_petlad 29-Apr-07 17:51 
GeneralRe: hr = pSrcAud->SetInput(bsInputFile) and hr = pEncoder->PrepareToEncode(VARIANT_TRUE); are not working Pin
Mark Salsbery30-Apr-07 6:47
Mark Salsbery30-Apr-07 6:47 
GeneralRe: hr = pSrcAud->SetInput(bsInputFile) and hr = pEncoder->PrepareToEncode(VARIANT_TRUE); are not working Pin
amitmistry_petlad 30-Apr-07 18:22
amitmistry_petlad 30-Apr-07 18:22 
GeneralRe: hr = pSrcAud->SetInput(bsInputFile) and hr = pEncoder->PrepareToEncode(VARIANT_TRUE); are not working Pin
Mark Salsbery1-May-07 5:31
Mark Salsbery1-May-07 5:31 
GeneralRe: hr = pSrcAud->SetInput(bsInputFile) and hr = pEncoder->PrepareToEncode(VARIANT_TRUE); are not working Pin
amitmistry_petlad 1-May-07 17:35
amitmistry_petlad 1-May-07 17:35 
QuestionName of the folder Pin
nripun27-Apr-07 1:21
nripun27-Apr-07 1:21 
AnswerRe: Name of the folder Pin
_AnsHUMAN_ 27-Apr-07 2:21
_AnsHUMAN_ 27-Apr-07 2:21 
AnswerRe: Name of the folder Pin
krmed27-Apr-07 6:52
krmed27-Apr-07 6:52 
QuestionProblem with report generation Pin
Shraddha Gautam27-Apr-07 0:47
Shraddha Gautam27-Apr-07 0:47 
QuestionGetting a text that cursor is pointing Pin
Toubou27-Apr-07 0:22
Toubou27-Apr-07 0:22 
AnswerRe: Getting a text that cursor is pointing Pin
Arman S.27-Apr-07 0:35
Arman S.27-Apr-07 0:35 
AnswerRe: Getting a text that cursor is pointing Pin
Hamid_RT27-Apr-07 0:39
Hamid_RT27-Apr-07 0:39 
GeneralRe: Getting a text that cursor is pointing Pin
Toubou27-Apr-07 1:09
Toubou27-Apr-07 1:09 
GeneralRe: Getting a text that cursor is pointing Pin
Hamid_RT27-Apr-07 1:12
Hamid_RT27-Apr-07 1:12 
QuestionVC++2005: IDE problem... Pin
Joan M27-Apr-07 0:18
professionalJoan M27-Apr-07 0:18 
AnswerRe: VC++2005: IDE problem... Pin
krmed27-Apr-07 6:55
krmed27-Apr-07 6:55 

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.