PDF_LIBHARU

Started by Rudolf Furstauer, April 12, 2011, 05:21:43 AM

Previous topic - Next topic

Rudolf Furstauer

I am now switched also to PB10 and it works quite well.

Currently I'm testing some existing projects.
In one project I use PDF_LIBHARU but if i compile I get following error message:

Error 527 in R:\DATEN_PRIVAT\Z_PB\QUELLENSAMMLUNG\PDF_LIBHARU_DLL\LIBHARU210_JOSEROCA\HPDF.INC(1577:040):  End of statement expected
  Line 1577: Sub HPDF_Error_Handler HPDF_CALLCONV() (ByVal error_no As HPDF_STATUS, ByVal detail_no As HPDF_STATUS, ByVal user_data As Dword) 

 
The problem is the function 'HPDF_Error_Handler'
 
' ----------------------------------------------------------------------------------------
' Callback error handler procedure
' ----------------------------------------------------------------------------------------
Sub HPDF_Error_Handler HPDF_CALLCONV() (ByVal error_no As HPDF_STATUS, ByVal detail_no As HPDF_STATUS, ByVal user_data As Dword)
   Local strMsg As String
--------------------------------

   strMsg = "Error number = " & Str$(error_no) & " [&H" & Hex$(error_no) & "]" & $CrLf
   strMsg = strMsg & "Detail number = " & Str$(detail_no) & " [&H" & Hex$(detail_no) & "]"
   MsgBox strMsg
End Sub
' ----------------------------------------------------------------------------------------


Does anyone have any idea how I could solve the problem?

Thanks for any help!

Rudolf Fuerstauer

José Roca

Yes. Remove the parens after HPDF_CALLCONV.


Sub HPDF_Error_Handler HPDF_CALLCONV() (ByVal error_no As HPDF_STATUS, ByVal detail_no As HPDF_STATUS, ByVal user_data As Dword)


must be


Sub HPDF_Error_Handler HPDF_CALLCONV (ByVal error_no As HPDF_STATUS, ByVal detail_no As HPDF_STATUS, ByVal user_data As Dword)


Rudolf Furstauer

Yes, this is the solution!
Sometimes I'm just stupid.

Thanks for your help!