creating DLL libraries with graphics routines
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
Calls to the ClearWin+ library normally require the use of an INCLUDEd header file or (better) a USE statement such as USE clrwin.
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
