Basically the main “loop” is enclosed in a timer which is called every ms. Also, my coding habit is rather messy, sorry. AND english is not my first, nor second, language.
I don’t regularly use Borland, but I think I did manage to get glut working with it some time ago when I did try it. If I remember correctly, there is a tool with Borland that allows you to create a library from a DLL. If you use that tool to create your library file, you can then link to that library file to get it to work.