Introduction

OBC means Object Based C. It is a way and a library to program Ansi C 89/90 in an object oriented way. Since C does not directly support objects and inheritance, object oriented programming in C is also named object based programming. OBC is open source and published under the GPL.

But why could anybody want to do object oriented programming in C? Here are my personal top 5 answers:



The OBC programming philosophy is very simple. There are objects and methods. Objects can be created, destroyed and you can send messages to them. If an object does not know how to react on a message, it can forward it to another object. That's it.

OBC offers the following advantages:



This tutorial demonstrates how to program object based C. It is intended to be worked through in sequential order. Download obcSdk.zip and unpack it. It contains five directories:

If you have make and gcc accessible in your shell go to the bin directory and type "make demo". Start the demo with "./demo.exe".