PDFInitDir example for Visual C++ 5.0 and later
BOOL CPDFTest::OnInitDialog()
{
.
.
.
// TODO: Add extra initialization here
CoInitialize(NULL);
HRESULT hr = CoCreateInstance(
CLSID_LEADRasterIO,
NULL,
CLSCTX_ALL,
IID_ILEADRasterIO,
(void**)&m_pRasterIO
);
if (FAILED(hr))
{
MessageBox(TEXT("Error Creating
Raster IO Object"));
}
return TRUE; // return TRUE unless you set the focus
to a control
}
void CPDFTest::OnGetPDFInitDir()
{
MessageBox(m_pRasterIO->GetPDFInitDir());
}
void CPDFTest::OnSetPDFInitDir()
{
m_pRasterIO->PutPDFInitDir("c:\\Runtime
PDF\\PDF");
}