Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!bb3.andrew.cmu.edu!newsfeed.pitt.edu!gatech!newsfeed.internetmci.com!vixen.cso.uiuc.edu!howland.reston.ans.net!ix.netcom.com!netcom.com!rfenney.slip.netcom.com!user
From: rfenney@netcom.com (Robert J. Fenney)
Subject: Re: C++/ST interface
Message-ID: <rfenney-230196232711@rfenney.slip.netcom.com>
Followup-To: comp.lang.smalltalk
Sender: netnews@mork.netcom.com
Nntp-Posting-Host: rfenney.slip.netcom.com
Organization: FenTek
References: <4e2q80$dli@sundog.tiac.net> <DLnpvo.49I@unirsvl.rsvl.unisys.com>
Date: Wed, 24 Jan 1996 07:34:53 GMT
Lines: 22

In article <DLnpvo.49I@unirsvl.rsvl.unisys.com>, Ashit Sawhney
<asawhney@po7.mv.unisys.com> wrote:

> 
> I have a similar problem , I could not find any C++ interface.
> Only C interface is available.
> 
> So I am writing C code calling  C++ methods by storing and passing cObject 
> pointers.Its an ugly way of handling things but I think that is the only way 
> existing. ( a lot of care is required to handle memory mang. )
> 
> 
> Still I have not figured out how to handle multiple inheritanced classes of 
> C++ by C functions. Any suggestions anybody????

The reason why you can't find a C++ interface is because of the calling
convention and the VDT and such. I really am not trying to be vague but we
are talking pulling in C++ and it is not easy to interface with other
environments including different C++ compilers. You really only have two
alternatives C or SOM.

Robert
