Hi all,

can anybody help me ?

I'd like to do some API stuff.
I got this code from VBAPI.com

1) Declare Function LineTo Lib "gdi32.dll" (ByVal hdc As Long, x As Long, ByVal y As Long) As Long

2)' Draw a red line from (0,40) to (100,50) on the window Form1.
Dim pt As POINT_TYPE ' needed for another API function
Dim retval As Long ' return value

3)Form1.ForeColor = RGB(255, 0, 0) ' set the foreground drawing color of Form1 to red
retval = MoveToEx(Form1.hdc, 0, 40, pt) ' set the current point to (0,40)
retval = LineTo(Form1.hdc, 100, 50) ' draw a line from current point to (100,50)

Questions :
Where to declare 1) ???
In General declarations ???

Where to declare 2) ???

Last question : I have to declare the POINT_TYPE structure with Type POINT_TYPE
x as long
y as long
End Type

Where to declare this ???

Any help would be very much appreciated !!!

Greets
Tom