Compile iseg.c, include iseg.h for the function declarations, and link with isegcanv.lib and isegcanv.dll. Enjoy.