Re: C++

 As other parts of my application
> are written with c++, so I hope HTCallClient() will be in
> a c++ file, but this seems to cause compiler error as the
> lib is written with c ( you can call c function in c++ program,
> however, you can not call c++ function in c program, at least
> with MSVC). 

It's true you can't call a C++ function from a C function
compiled with a C compiler.  But you can call a C function
compiled with a C++ compiler, which in turn can call a
C++ function.  I.e., write some wrappers around your
C++ code in C, compile them with the C++ compiler, and
use these as your callbacks.


Greg

Received on Friday, 16 February 1996 18:31:05 UTC