public HPdfDoc() { HPDF_ErrorHandler error_handler = new HPDF_ErrorHandler(HPdfDoc.ErrorProc); hpdf = HPDF_New(error_handler, IntPtr.Zero); if (hpdf == IntPtr.Zero) { throw new Exception("cannot create HPdfDoc object."); } }
private static extern IntPtr HPDF_New(HPDF_ErrorHandler user_error_fn, IntPtr user_data);