Mail Archives: djgpp/1997/01/15/23:03:50
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 -