jamy said:
Hi all,
I have a piece of code written in c++. I wanted to pass that
object to a Cprogram. Can I do that, then how can I access the members
of that object from C function.
You can certainly pass objects from C++ programs to C functions, although
the mechanism for so doing is a C++ mechanism and so discussion of it ought
really to be taken up in the comp.lang.c++ newsgroup.
To pass an object from a C++ program to a C /program/ is also possible, but
the mechanism for doing so (other than writing the data out to a file and
then reading that file from the C program, which is portable but clumsy)
would involve inter-process communication mechanisms that are beyond the
scope of either comp.lang.c or its C++ sister newsgroup. If this is what
you actually meant, then I suggest you ask the question in a newsgroup
devoted to your platform - perhaps comp.unix.programmer or
comp.os.ms-windows.programmer.win32 would be appropriate.