Hi,
This is going to be one of those annoyingly stupid questions.
I would like to compile a library as a C++ program, but it needs to be
able to work with a C program as well. I only want to distribute one
..lib file and an H file.
I know that I can call a C library from a C++ program. Is it possible
to compile a CPP library that can be called from a C program?
For the, "why not just make it a C library and stop wasting our time?"
question, I need to handle some OLE/OCP calls, and I'm trying to avoid
the pain the arse of doing OLE in C.
Thanks in advance,
Tom
This is going to be one of those annoyingly stupid questions.
I would like to compile a library as a C++ program, but it needs to be
able to work with a C program as well. I only want to distribute one
..lib file and an H file.
I know that I can call a C library from a C++ program. Is it possible
to compile a CPP library that can be called from a C program?
For the, "why not just make it a C library and stop wasting our time?"
question, I need to handle some OLE/OCP calls, and I'm trying to avoid
the pain the arse of doing OLE in C.
Thanks in advance,
Tom
Comment