Click here to Skip to main content
15,917,859 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CWinThread use Pin
CDRAIN19-Apr-07 4:32
CDRAIN19-Apr-07 4:32 
GeneralRe: CWinThread use Pin
bob1697219-Apr-07 6:33
bob1697219-Apr-07 6:33 
QuestionHow to Change top menu font ? Pin
Atul2319-Apr-07 0:57
Atul2319-Apr-07 0:57 
AnswerRe: How to Change top menu font ? Pin
Hamid_RT19-Apr-07 1:13
Hamid_RT19-Apr-07 1:13 
Questionfile encoding problem Pin
amitmistry_petlad 19-Apr-07 0:28
amitmistry_petlad 19-Apr-07 0:28 
AnswerRe: file encoding problem Pin
Paresh Chitte19-Apr-07 2:14
Paresh Chitte19-Apr-07 2:14 
GeneralRe: file encoding problem Pin
amitmistry_petlad 19-Apr-07 2:45
amitmistry_petlad 19-Apr-07 2:45 
GeneralRe: file encoding problem Pin
Mark Salsbery19-Apr-07 9:33
Mark Salsbery19-Apr-07 9:33 
OMG | :OMG:

Have you stepped through the entire function in the debugger to make sure all preceding calls
were successful?

I can't tell entirely what's going on because of indentation, but is PrepareToEncode(VARIANT_FALSE)
being called before PrepareToEncode(VARIANT_TRUE)? If so, that seems odd to me.

When IWMEncoder::PrepareToEncode() fails, you can use the IErrorInfo interface to get a
description of the error:
#include <atlbase.h>
#include <atlcomcli.h>
...
hr = pEncoder->PrepareToEncode(VARIANT_TRUE);
 
if (FAILED(hr)
{
   CComPtr<IErrorInfo> pEO;
   if(S_OK == GetErrorInfo(NULL, &pEO))
   {
      CComBSTR bstrDesc;
      pEO->GetDescription(&bstrDesc); <code>// examine this BSTR</code>
   }
}


"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

GeneralRe: file encoding problem Pin
amitmistry_petlad 22-Apr-07 20:31
amitmistry_petlad 22-Apr-07 20:31 
GeneralRe: file encoding problem Pin
Mark Salsbery23-Apr-07 5:12
Mark Salsbery23-Apr-07 5:12 
GeneralRe: file encoding problem Pin
amitmistry_petlad 23-Apr-07 17:30
amitmistry_petlad 23-Apr-07 17:30 
QuestionVC++/MFC Pin
SumitMandal19-Apr-07 0:10
SumitMandal19-Apr-07 0:10 
QuestionRe: VC++/MFC Pin
toxcct19-Apr-07 0:19
toxcct19-Apr-07 0:19 
QuestionVC++/MFC Pin
SumitMandal19-Apr-07 0:08
SumitMandal19-Apr-07 0:08 
AnswerRe: VC++/MFC Pin
Hamid_RT19-Apr-07 1:14
Hamid_RT19-Apr-07 1:14 
AnswerRe: VC++/MFC Pin
Hamid_RT19-Apr-07 1:21
Hamid_RT19-Apr-07 1:21 
QuestionScale control Pin
kasturi_haribabu18-Apr-07 23:48
kasturi_haribabu18-Apr-07 23:48 
QuestionBinary file format? Pin
$uresh $hanmugam18-Apr-07 23:13
$uresh $hanmugam18-Apr-07 23:13 
AnswerRe: Binary file format? Pin
toxcct18-Apr-07 23:14
toxcct18-Apr-07 23:14 
GeneralRe: Binary file format? Pin
$uresh $hanmugam19-Apr-07 1:45
$uresh $hanmugam19-Apr-07 1:45 
QuestionINI file Pin
josip cagalj18-Apr-07 23:03
josip cagalj18-Apr-07 23:03 
AnswerRe: INI file Pin
toxcct18-Apr-07 23:13
toxcct18-Apr-07 23:13 
GeneralRe: INI file Pin
josip cagalj18-Apr-07 23:21
josip cagalj18-Apr-07 23:21 
GeneralRe: INI file Pin
toxcct18-Apr-07 23:27
toxcct18-Apr-07 23:27 
GeneralRe: INI file Pin
josip cagalj18-Apr-07 23:32
josip cagalj18-Apr-07 23:32 

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.