Hello Robert
I tried it. With real4 it works but not with real8 . Why ?
Then i changed the code from
Code: Select all
METHOD Image(l_file AS STRING,l_x AS REAL4,l_y AS REAL4,l_w AS REAL4,l_h := 0 AS REAL4,l_type := '' AS STRING) AS VOID PASCAL
to
Code: Select all
METHOD Image(l_file AS STRING,l_x AS REAL4,l_y AS REAL4,l_w AS REAL4,l_h := 0 AS REAL4) AS VOID PASCAL
LOCAL l_type :="" AS STRING
Error when the app is running ,with 6 Parameter instead of 5 ??????
System.MissingMethodException: Methode nicht gefunden: "Void New_MDPDF.Image(System.String, Single, Single, Single, Single, System.String)".
And i have this also.
CONSTRUCTOR (l_orientation, l_unit, l_fontpath, l_imagepath, dMarginLeft , dMarginTop)
i changed to
CONSTRUCTOR (l_orientation AS STRING, l_unit, l_fontpath, l_imagepath, dMarginLeft , dMarginTop)
and then
System.MissingMethodException: Methode nicht gefunden: "Void New_MDPDF..ctor(XSharp.__Usual[])".
Horst
ps_ all warnings maybe that helps
warning XS9118: Untyped parameter 'l_x' and 'PASCAL' calling convention, assuming 'REAL' type. 1246,36 Pdf.prg pdfImage
warning XS9118: Untyped parameter 'l_y' and 'PASCAL' calling convention, assuming 'REAL' type. 1246,40 Pdf.prg pdfImage
warning XS9118: Untyped parameter 'l_w' and 'PASCAL' calling convention, assuming 'REAL' type. 1246,44 Pdf.prg pdfImage
warning XS9118: Untyped parameter 'l_x1' and 'PASCAL' calling convention, assuming 'REAL8' type. 1416,18 Pdf.prg pdfLine
warning XS9118: Untyped parameter 'l_y1' and 'PASCAL' calling convention, assuming 'REAL8' type. 1416,23 Pdf.prg pdfLine
warning XS9118: Untyped parameter 'l_x2' and 'PASCAL' calling convention, assuming 'REAL8' type. 1416,28 Pdf.prg pdfLine
warning XS9118: Untyped parameter 'l_x' and 'PASCAL' calling convention, assuming 'REAL8' type. 1515,18 Pdf.prg pdfRect
warning XS9118: Untyped parameter 'l_y' and 'PASCAL' calling convention, assuming 'REAL8' type. 1515,22 Pdf.prg pdfRect
warning XS9118: Untyped parameter 'l_w' and 'PASCAL' calling convention, assuming 'REAL8' type. 1515,26 Pdf.prg pdfRect
warning XS9118: Untyped parameter 'l_x' and 'PASCAL' calling convention, assuming 'REAL8' type. 1661,19 Pdf.prg pdfSetXY
warning XS9076: Empty IF block. Insert a NOP statement to suppress the warning, if this was intentional. 2354,2 Func.prg TurnImagePart2
warning XS9076: Empty ELSE block. Insert a NOP statement to suppress the warning, if this was intentional. 1255,2 Pdf Klasse.prg MDPDF:Image
warning XS9076: Empty ELSE block. Insert a NOP statement to suppress the warning, if this was intentional. 1353,2 Pdf Klasse.prg MDPDF:.ctor
warning XS9076: Empty ELSE block. Insert a NOP statement to suppress the warning, if this was intentional. 1365,2 Pdf Klasse.prg MDPDF:.ctor
warning XS9076: Empty ELSE block. Insert a NOP statement to suppress the warning, if this was intentional. 1513,2 Pdf Klasse.prg MDPDF:SetDisplayMode
warning XS9118: Untyped parameter 'l_w' and 'PASCAL' calling convention, assuming 'REAL8' type. 615,19 Pdf Klasse.prg MDPDF:_multicell
warning XS9118: Untyped parameter 'l_w' and 'PASCAL' calling convention, assuming 'REAL8' type. 1045,13 Pdf Klasse.prg MDPDF:Cell
warning XS9118: Untyped parameter 'l_x' and 'PASCAL' calling convention, assuming 'REAL8' type. 1121,17 Pdf Klasse.prg MDPDF:DrawLink
warning XS9118: Untyped parameter 'l_x' and 'PASCAL' calling convention, assuming 'REAL8' type. 1152,17 Pdf Klasse.prg MDPDF:DrawText
warning XS9118: Untyped parameter 'l_x' and 'PASCAL' calling convention, assuming 'REAL' type. 1213,31 Pdf Klasse.prg MDPDF:Image
warning XS9118: Untyped parameter 'l_y' and 'PASCAL' calling convention, assuming 'REAL' type. 1213,35 Pdf Klasse.prg MDPDF:Image
warning XS9118: Untyped parameter 'l_w' and 'PASCAL' calling convention, assuming 'REAL' type. 1213,39 Pdf Klasse.prg MDPDF:Image
warning XS9118: Untyped parameter 'l_x1' and 'PASCAL' calling convention, assuming 'REAL8' type. 1385,13 Pdf Klasse.prg MDPDF:Line
warning XS9118: Untyped parameter 'l_y1' and 'PASCAL' calling convention, assuming 'REAL8' type. 1385,18 Pdf Klasse.prg MDPDF:Line
warning XS9118: Untyped parameter 'l_x2' and 'PASCAL' calling convention, assuming 'REAL8' type. 1385,23 Pdf Klasse.prg MDPDF:Line
warning XS9118: Untyped parameter 'l_w' and 'PASCAL' calling convention, assuming 'REAL8' type. 1411,18 Pdf Klasse.prg MDPDF:MultiCell
warning XS9118: Untyped parameter 'l_x' and 'PASCAL' calling convention, assuming 'REAL8' type. 1474,13 Pdf Klasse.prg MDPDF:Rect
warning XS9118: Untyped parameter 'l_y' and 'PASCAL' calling convention, assuming 'REAL8' type. 1474,17 Pdf Klasse.prg MDPDF:Rect
warning XS9118: Untyped parameter 'l_w' and 'PASCAL' calling convention, assuming 'REAL8' type. 1474,21 Pdf Klasse.prg MDPDF:Rect
warning XS9118: Untyped parameter 'l_x' and 'PASCAL' calling convention, assuming 'REAL8' type. 1617,14 Pdf Klasse.prg MDPDF:SetXY
warning XS9118: Untyped parameter 'l_w' and 'PASCAL' calling convention, assuming 'REAL8' type. 632,19 PDF StringBuilder.prg New_MDPDF:_multicell
warning XS9118: Untyped parameter 'l_w' and 'PASCAL' calling convention, assuming 'REAL8' type. 1067,13 PDF StringBuilder.prg New_MDPDF:Cell
warning XS9118: Untyped parameter 'l_x' and 'PASCAL' calling convention, assuming 'REAL8' type. 1143,17 PDF StringBuilder.prg New_MDPDF:DrawLink
warning XS9118: Untyped parameter 'l_x' and 'PASCAL' calling convention, assuming 'REAL8' type. 1174,17 PDF StringBuilder.prg New_MDPDF:DrawText
warning XS9118: Untyped parameter 'l_x1' and 'PASCAL' calling convention, assuming 'REAL8' type. 1402,13 PDF StringBuilder.prg New_MDPDF:Line
warning XS9118: Untyped parameter 'l_y1' and 'PASCAL' calling convention, assuming 'REAL8' type. 1402,18 PDF StringBuilder.prg New_MDPDF:Line
warning XS9118: Untyped parameter 'l_x2' and 'PASCAL' calling convention, assuming 'REAL8' type. 1402,23 PDF StringBuilder.prg New_MDPDF:Line
warning XS9118: Untyped parameter 'l_w' and 'PASCAL' calling convention, assuming 'REAL8' type. 1428,18 PDF StringBuilder.prg New_MDPDF:MultiCell
warning XS9118: Untyped parameter 'l_x' and 'PASCAL' calling convention, assuming 'REAL8' type. 1490,13 PDF StringBuilder.prg New_MDPDF:Rect
warning XS9118: Untyped parameter 'l_y' and 'PASCAL' calling convention, assuming 'REAL8' type. 1490,17 PDF StringBuilder.prg New_MDPDF:Rect
warning XS9118: Untyped parameter 'l_w' and 'PASCAL' calling convention, assuming 'REAL8' type. 1490,21 PDF StringBuilder.prg New_MDPDF:Rect
warning XS9118: Untyped parameter 'l_x' and 'PASCAL' calling convention, assuming 'REAL8' type. 1675,14 PDF StringBuilder.prg New_MDPDF:SetXY
Compilation successful! (42 warnings)