Hi Charles,
making of Dll's is great!
good work!
here is a Demo
indexbase 0
include "win_c.inc"
include "win_g.inc"
Declare Function DrawCircle Lib "Draws.dll" (byval hdc as long, byval x as long, byval y as long, byval r as long, byval color as long)
Declare Function DrawBox Lib "Draws.dll" (byval hdc as long, byval x1 as long,byval y1 as long,byval x2 as long,byval y2 as long,byval color as long)
Declare Function DrawEllipse Lib "Draws.dll" (byval hdc as long, byval mx as long,byval my as long,byval r1 as long,byval r2 as long,byval color as long)
Declare Function DrawLine Lib "Draws.dll" (byval hdc as long, byval x2 as long,byval y2 as long,byval x3 as long,byval y3 as long,byval color as long)
Dim hdc as long
SetWindow "Dll-Demo / OxygenBasic Version o26",800,600,ws_overlapped
hdc = setbuffer winwidth,winheight
while winexit =0
ClearBuffer
DrawCircle hdc,50,50,40,&HB0B0B0
DrawCircle hdc,740,50,40,&HA0A0A0
DrawBox hdc,10,10,768,780,255*34825
For jx=0 To 49
DrawEllipse hdc,250,300,200+jx,150-jx, &H80FF80*jx
DrawEllipse hdc,620,300,150-jx,200+jx, &HFF80FF*jx
Next
DoEvents
FlipBuffer
Wend
CloseApp
Peter
.