Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

WRC won't compile dialog with no controls

1 view
Skip to first unread message

Alex Taylor

unread,
Mar 16, 2009, 5:14:01 AM3/16/09
to
I have this dialog that's part of a resource file I'm trying to build
using WRC.EXE from OpenWatcom 1.7:

DLGTEMPLATE ID_PREVIEWINACTIVE LOADONCALL MOVEABLE DISCARDABLE
BEGIN
DIALOG SZ_INACTIVEWIN, ID_PREVIEWINACTIVE, 0, 0, 204, 53,
WS_VISIBLE, FCF_SYSMENU | FCF_TITLEBAR | FCF_MINMAX
BEGIN
END
END

That's right, the dialog has no controls... and from what I can tell, WRC
doesn't seem to like that. At any rate, I get:

Error! 49: Syntax error near "END"


Any suggestions about how I might deal with this? I don't want to add
any controls to the dialog just to avoid this (I don't normally build with
WRC, but I'd like to make it possible for people to use).

--
Alex Taylor
Fukushima, Japan
http://www.socis.ca/~ataylo00

Please take off hat when replying.

Michael Greene

unread,
Mar 16, 2009, 6:48:06 AM3/16/09
to
Alex Taylor wrote:
> I have this dialog that's part of a resource file I'm trying to build
> using WRC.EXE from OpenWatcom 1.7:
>
> DLGTEMPLATE ID_PREVIEWINACTIVE LOADONCALL MOVEABLE DISCARDABLE
> BEGIN
> DIALOG SZ_INACTIVEWIN, ID_PREVIEWINACTIVE, 0, 0, 204, 53,
> WS_VISIBLE, FCF_SYSMENU | FCF_TITLEBAR | FCF_MINMAX
> BEGIN
> END
> END
>
> That's right, the dialog has no controls... and from what I can tell, WRC
> doesn't seem to like that. At any rate, I get:
>
> Error! 49: Syntax error near "END"
>
>
> Any suggestions about how I might deal with this? I don't want to add
> any controls to the dialog just to avoid this (I don't normally build with
> WRC, but I'd like to make it possible for people to use).
>

It works correctly with rc?

Mike

Alex Taylor

unread,
Mar 16, 2009, 7:08:02 AM3/16/09
to
On Mon, 16 Mar 2009 10:48:06 UTC, Michael Greene <list...@cox.net> wrote:

> > That's right, the dialog has no controls... and from what I can tell,
> > WRC doesn't seem to like that. At any rate, I get:
> >
> > Error! 49: Syntax error near "END"
>

> It works correctly with rc?

Yeah, it works fine with RC (4.00.x).

Frank Beythien

unread,
Mar 16, 2009, 8:49:22 AM3/16/09
to
On Mon, 16 Mar 2009 09:14:01 UTC "Alex Taylor"
<mai...@reply.to.address> wrote:

> I have this dialog that's part of a resource file I'm trying to build
> using WRC.EXE from OpenWatcom 1.7:

[...]


> That's right, the dialog has no controls... and from what I can tell, WRC
> doesn't seem to like that. At any rate, I get:

[...]


> Any suggestions about how I might deal with this? I don't want to add
> any controls to the dialog just to avoid this (I don't normally build with
> WRC, but I'd like to make it possible for people to use).

OW 1.8 is out since last month with changes for WRC. Perhaps it helps.


CU/2
--
Frank Beythien fBeythien AT gmx.de

Steven Levine

unread,
Mar 17, 2009, 11:30:44 AM3/17/09
to
In <F7qvl.84567$2O4....@newsfe03.iad>, on 03/16/2009
at 06:48 AM, Michael Greene <list...@cox.net> said:
Hi Alex,

>> That's right, the dialog has no controls... and from what I can tell, WRC
>> doesn't seem to like that. At any rate, I get:
>>
>> Error! 49: Syntax error near "END"

FWIW, complete testcases are always better. It saves other folks time.

Try it this way

#include <pm.h>
#define ID_PREVIEWINACTIVE 1
#define SZ_INACTIVEWIN "Name"


DLGTEMPLATE ID_PREVIEWINACTIVE LOADONCALL MOVEABLE DISCARDABLE BEGIN
DIALOG SZ_INACTIVEWIN, ID_PREVIEWINACTIVE, 0, 0, 204, 53,
WS_VISIBLE, FCF_SYSMENU | FCF_TITLEBAR | FCF_MINMAX

// BEGIN
// END
END

The OS/2 port of wrc is newish code. Michal did the port something over 2
years ago and I did some fixes in 2008.

Wrc probably should accept the empty block. Please submit a ticket to the
OpenWatcom Bugzilla and let me know the ticket number.

Steven

--
--------------------------------------------------------------------------------------------
Steven Levine <ste...@earthlink.bogus.net>
eCS/Warp/DIY etc. www.scoug.com www.ecomstation.com
--------------------------------------------------------------------------------------------

Alex Taylor

unread,
Mar 23, 2009, 10:57:01 PM3/23/09
to
On Tue, 17 Mar 2009 15:30:44 UTC, Steven Levine <ste...@earthlink.bogus.net>
wrote:

> Try it this way
>
> #include <pm.h>
> #define ID_PREVIEWINACTIVE 1
> #define SZ_INACTIVEWIN "Name"
> DLGTEMPLATE ID_PREVIEWINACTIVE LOADONCALL MOVEABLE DISCARDABLE BEGIN
> DIALOG SZ_INACTIVEWIN, ID_PREVIEWINACTIVE, 0, 0, 204, 53,
> WS_VISIBLE, FCF_SYSMENU | FCF_TITLEBAR | FCF_MINMAX
> // BEGIN
> // END
> END


Hmm.. yeah, that works.


> The OS/2 port of wrc is newish code. Michal did the port something over 2
> years ago and I did some fixes in 2008.
>
> Wrc probably should accept the empty block. Please submit a ticket to the
> OpenWatcom Bugzilla and let me know the ticket number.

Will try and do this when I have time, thanks.

0 new messages