Richard Levitte - VMS Whacker wrote:
>
> rene.eberhard> It't also easy to use C++ objects in a C code.
>
> Oh? How so? Is that portable?
Yes. But boring...
extern "C" {
void *newThing()
{
return new Thing;
}
void thingMethod(void *thing_,int x)
{
Thing *thing=(Thing *)thing_;
thing->method(x);
}
}
and so on...
Of course, you can make it typesafe with more effort.
Cheers,
Ben.
--
SECURE HOSTING AT THE BUNKER! http://www.thebunker.net/hosting.htm
http://www.apache-ssl.org/ben.html
"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
- Indira Gandhi
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]