Hallo, guten Tag.
Muß ich jedesmal eine Def machen für XPIA wenn ich eine DLL-Routine nutzen möchte ?
Oder wie binde ich diese Routine in AsmStart/AsmEnd ein ?
Danke.
Gruss
Code
$MAKE CLE
declare ende&
Declare x&,y&,r&
Declare xy#,fi#
Def PolyPolyline(4) !"gdi32.dll","PolyPolyline"
dim xy#,64
Dim fi#,12
Long xy#,0 = 10
Long xy#,4 = 10
Long xy#,8 = 100
Long xy#,12 = 10
Long xy#,16 = 100
Long xy#,20 = 300
Long xy#,24 = 10
Long xy#,28 = 10
Long xy#,32 = 150
Long xy#,36 = 10
Long xy#,40 = 250
Long xy#,44 = 10
Long xy#,48 = 250
Long xy#,52 = 300
Long xy#,56 = 150
Long xy#,60 = 60
Long fi#,0=4
Long fi#,4=4
Window 20,20-600,600
Cls $ffffff
UsePen 0,1,RGB(0,0,255)
poly_api xy#,fi#,2
ende&=1
WHILE ende&
waitkey
ENDWHILE
End
Proc poly_api
Parameters xy#,fi# ,z&
PolyPolyline(%hdc,xy#,fi#,z&)
endproc
Alles anzeigen