www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/15/23:03:50

From: "A. Sinan Unur" <asu1 AT cornell DOT edu>
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
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/
*******************************************************************

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019