Previous | Next | (P-PDF) Acrobat 6.0
Topic: (SDK) What causes these failures?
Conf: (P-PDF) Acrobat 6.0, Msg: 147981
From: glennth
Date: 3/24/2006 01:41 AM
I'm not very good with C++ and have based my code on examples I found that came with the SDK.
HRESULT hRetVal = CoCreateInstance (__uuidof(PdfDistiller), NULL, CLSCTX_SERVER,
__uuidof(IPdfDistiller), reinterpret_cast(&m_pDistApp));
if (!SUCCEEDED(hRetVal)) {
printf("What causes this failure?");
}
HRESULT hRes = m_pDistApp->QueryInterface (IID_IConnectionPointContainer, reinterpret_cast(&pContainer));
if (!SUCCEEDED(hRes)) {
printf("What causes this failure?");
}
What causes these failures, and what can I do to try to decrease the failure rate?