| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | GCC says parse error |
Hello !
I have quite some experience programming for DOS, but I am new to both C++
and OS/2. Experimenting a little with Develloper Helper Objects, I came
across this error from GCC:
stdwin.cc: In method `long unsigned int TEditWindow::init()':
stdwin.cc:30: parse error before `='
where this is the offended function:
#define STDATTR = MultiLineEditTxtAttr(false,true,true,false,false,false)
// init
BOOL TEditWindow::init()
{
TWindow::init;
setTitle(Title);
// the following line is the line with the parse error:
Editor=new TMultiLineEditText(this,0,0,width,height,STDATTR);
return (Editor==NULL);
}
the object definitionfile is as follows:
#include
#include"window.h"
#include"mledtext.h"
class TEditWindow: public TWindow
{
protected:
char *Title; // window-title
TMultiLineEditText *Editor; // is pointer to associated edittext
public:
TEditWindow( ULONG id , TWinBase *parent, char *aTitle);
virtual ~TEditWindow();
virtual BOOL init();
virtual const char *getClassName(void);
};
Why is the line with the parse error an error??
Bye, Erik!
--- FleetStreet 1.10 NR
* Origin: Help I forgot an origin (2:500/19.1929)SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407 SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809 @PATH: 500/19 9 28/777 2/777 105/42 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.