ClassesInC : sample C code showing a simple OO Class implementation

Download Files

Changes

  1. Initial Version

Installation

None.

Notes

This shows a sample implementation of OO classes in C.

The classes instance variables are held in a struct and the method names undergo a (manual) name mangling to ensure that they are unique among different classes.

The "class" implemented in the sample is "socket". The code in ClassesInC.c is a mainline that drives the socket code.

You will have to supply a ws32_2.lib in the linklist to make it compile.




Contact me about content on this page using john_web-at-arrizza-dot-com
For Web Master or site problems contact: webadmin-at-arrizza-dot-com
Copyright John Arrizza (c) 2001,2002,2003,2004,2005,2006,2007