From: ejp@world.std.com (Eric J Pierce)
Subject: Re: TECH: Sense8 - Migration to C++?
Date: Tue, 3 Oct 1995 13:03:57 GMT
Organization: The World Public Access UNIX, Brookline, MA


From: ejp@world.std.com (Eric J Pierce)

Peter Rothman (cyberfam@ix.netcom.com) wrote:

1: This probably won't work. In general you can't call C++ 
: routines from within a C program.  This is why you need a 
: native C++ API rather than a layer on top of C.

In lieu of a C++ API, you might try the tricks that C++ programmers
have used to use OSF/Motif with C++.  In Object-Oriented Programming
with C++ and OSF/Motif, Douglas Young shows how to give Motif C++
callback functions to the Motif C API.  If you define the functions
you want to pass to the C API as static and use the scope resolution
operator, it should work.

I don't use WTK and have never tried this.  It was just a thought.

			Good Luck,

					- Eric Pierce
					  R+R Research
					  ejp@world.std.com

