[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: C++ variant of OpenLDAP 2.0 alpha3

I admit I haven't done C with C++ (yet) and this got me curious
so I did some FAQ digging.


On Thu, Feb 24, 2000 at 07:13:11PM +0100, Mikael wrote:
> "Kurt D. Zeilenga" wrote:
> > At 02:56 PM 2/24/00 +0100, Mikael wrote:
> > >Since the whole OpenLDAP package is written in C it is hard to use other
> > >modules (f.e. DCOM,dll:s written in C++ in the OpenLDAP code.
> >
> > C can call C++ and vice versa.
> Hmm....I am almost certain that you cannot call a C++ routine from C (program
> compiled with C compiler). In my case I need to call functions in a DCOM
> server which means that I need to import the wrapper interface of the DCOM
> using:
>     #import "myDcomServer.exe"
> producing a .tlh file containing interface definitions GUID:s etc.
> I cannot include this 'wrapping' interface into my C-openldap-code, compiler
> is screaming....