IonicWind Software

Aurora Compiler => GUI => Topic started by: Bruce Peaslee on December 15, 2005, 02:14:22 PM

Title: My window program fails to compile
Post by: Bruce Peaslee on December 15, 2005, 02:14:22 PM
I'm starting from scratch to try and get a feel for this, but my first little effort fails to compile:


#AutoDefine "Off"

Declare Import, GetSysColor(index as int),int;

class myWindow : cwindow
{
// Overridden functions
declare OnClose(),ÂÃ,  int;
declare OnCreate(), int;
// Variables
def run as int;
}

myWindow::OnClose(), int
{
Destroy();
run = 0;
Return 0;
}

myWindow::OnCreate(), int
{
run = 1;
CenterWindow();
Return True;
}

global sub main()
{
myWindow winMain;
winMain.Create(0,0,300,300,
AWS_CAPTION|AWS_VISIBLE|AWS_BORDER|AWS_SYSMENU|AWS_AUTODRAW|AWS_SIZE,
0,"The Hood",NULL);
winMain.SetWindowColor(GetSysColor(15));
do
{
wait();
}
until winMain.run = 0;
return;
}


The error isÂÃ,  { } mismatch - }

but they look matched to meÂÃ,  ÂÃ, :P
Title: Re: My window program fails to compile
Post by: Ionic Wind Support Team on December 15, 2005, 02:20:10 PM
The actual keyword is

} until

The newline is causing the problem.

Paul.
Title: Re: My window program fails to compile
Post by: Bruce Peaslee on December 15, 2005, 02:29:21 PM
Thanks, works fine now.

Peculiar syntax. I did notice that you were running together the brace and the "until", but I thought it was stylistic.
Title: Re: My window program fails to compile
Post by: Ionic Wind Support Team on December 15, 2005, 02:36:11 PM
Just a bug that needs to be fixed ;)

Title: Re: My window program fails to compile
Post by: Bruce Peaslee on December 30, 2005, 11:19:35 AM
It has.
Title: Re: My window program fails to compile
Post by: Ionic Wind Support Team on December 30, 2005, 12:15:20 PM
Not yet.  Still on my todo list.
Title: Re: My window program fails to compile
Post by: Bruce Peaslee on December 30, 2005, 12:44:21 PM
Right. I put a space there and it worked, but new line still fails.