It makes sense to be able to reuse our logging server from different applications. After all, the server will basically just take text messages and dump them to the disk. Therefore, you should need to write such a piece of code only once for any given company. OLE and Visual Basic 4.0 provide a way for you to write such a versatile server. Other applications will be able to reuse the single logging server, without changing the server itself, by using it as an object.
Circular files support a maximum number of records.
Once you reach the maximum, the oldest records drop off as you add newer ones. This approach lets you control the size of the output files generated over time. We're going to use Visual Basic 4.0 to build an OLE server called LogIt, which will handle our messages in a meaningful way. We'll also build a simple client application that will call LogIt and post messages through it. Now that we know we're making an object, let's define the contract of our LogIt object.