From: "A. Sinan Unur" Newsgroups: comp.os.msdos.djgpp Subject: Re: c and c++ in the same program? Date: Wed, 15 Jan 1997 14:57:51 -0500 Organization: Cornell University http://www.cornell.edu Lines: 36 Sender: asu1 AT cornell DOT edu (Verified) Message-ID: <32DD36BF.203D@cornell.edu> References: <32dd111a DOT 70513538 AT redwood DOT cs DOT sc DOT edu> Reply-To: asu1 AT cornell DOT edu NNTP-Posting-Host: cu-dialup-0036.cit.cornell.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Daniel Boyer wrote: > > Ok this may be a simple question that has been answered before, but > here goes: > Ok, I have a text based program that is written in C++ (djgpp) and > works, but it has a very minimal/crude interface that I dislike. I > want to give it a GUI using sword, but I noticed all of the sample > programs that come with sword are written in C (not C++). are you sure you are referring to sword? i just did checked most of the samples (just to ascertain my sanity) and they are C++ alright! excerpt from sword sample program hello.cc: class THello : public TZone { DECLARE(THello); // --- Functions // Public constructors THello(void); THello(int X, int Y, int L, int H); THello(TRect& R); // Construction / Destruction void Defaults(void); void Init(int X, int Y, int L, int H); // Drawings virtual void Draw(TRect Clip); }; -- ******************************************************************* A. Sinan Unur WWWWWW |--O+O mailto:asu1 AT cornell DOT edu C ^ mailto:sinan AT econ DOT cit DOT cornell DOT edu \ ~/ http://www.bqnet.com/sinan/ *******************************************************************