Click here to Skip to main content
16,004,969 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Mark Salsbery wrote:
What is ConvertTCharToWChar?


HRESULT ConvertTCharToWChar( TCHAR * ptszInput, WCHAR ** pwszOutput )
{
    int cchOutput = 0;
    
    if( NULL == ptszInput || NULL == pwszOutput )
    {
        return( E_INVALIDARG );
    }

    //
    // Get output buffer size
    //
#ifdef UNICODE
    cchOutput = wcslen( ptszInput ) + 1;
#else //UNICODE
    cchOutput = MultiByteToWideChar( CP_ACP, 0, ptszInput, -1, NULL, 0 );
    if( 0 == cchOutput )
    {
        return( HRESULT_FROM_WIN32( GetLastError() ) );
    }
#endif // UNICODE

    *pwszOutput = new WCHAR[ cchOutput ];
    if( NULL == *pwszOutput)
    {
        return( E_OUTOFMEMORY );
    }

#ifdef UNICODE
    wcsncpy( *pwszOutput, ptszInput, cchOutput );
#else //UNICODE
    if( 0 == MultiByteToWideChar( CP_ACP, 0, ptszInput, -1, *pwszOutput, cchOutput ) )
    {
        SAFE_ARRAYDELETE( *pwszOutput );
        return( HRESULT_FROM_WIN32( GetLastError() ) );
    }        
#endif // UNICODE

    return( S_OK );
}




Have you looked at bsInputFile in the debugger to see if it's valid?

yes , The value comes valid.



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

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 
GeneralRe: VC++2005: IDE problem... Pin
Joan M27-Apr-07 7:00
professionalJoan M27-Apr-07 7:00 
QuestionDisplay of graph Pin
Aint26-Apr-07 23:59
Aint26-Apr-07 23:59 

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.