I am working on several projects right now revolving around object oriented C, and i would like to be able to develop a set of classes that could be added to programs and accessed easily using "#include ...", but i am having several problems, specifically, i don't know what kind of file i should create, should i use a ".h" file? a ".cpp" file? and once i have the file, what should i do to make the classes usable? do i have to "#define ..." like in regular header files? please help. Also, is it possible to create user functions, like in PHP or JavaScript, for example:
thanks,
chris