creating DLL libraries with graphics routines

Back to Forum: Support To End of Page
ljfarrugia
Posts: 62
1 Apr 2026 10:07GMT #33022

When creating a DLL with a library source containing the following stub routine, the linker complains that the symbol draw_filled_rectangle@ is not defined (the same is the case for several other graphics calls, e.g. draw_rectangle@, draw_ellipse@ etc) This happens when building both 32 & 64 DLL's. Do I need to add extra code, e.g. any include statements such as include <clearwin.ins> ?

 subroutine ClearScreenArea(ix1,iy1,ix2,iy2,icol)

C ---- clears screen area from (ix1,iy1) to (ix2,iy2) to colour icol integer ix1,iy1,ix2,iy2,icol call draw_filled_rectangle@(ix1,iy1,ix2,iy2,icol) end

PaulLaidler
Posts: 8063 Salford, UK
1 Apr 2026 11:26GMT #33031

Calls to the ClearWin+ library normally require the use of an INCLUDEd header file or (better) a USE statement such as USE clrwin.

👁 LitusSaxonicum
LitusSaxonicum
Posts: 2309 Yateley, Hants, UK
1 Apr 2026 20:28GMT #33035

Louis,

If you are new to ClearWin+, you may find my book helpful. It is included with the release files or is downloadable from the Silverfrost website.

Eddie

Please login to reply.