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.
It works correctly with rc?
Mike
> > 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).
> 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
>> 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
--------------------------------------------------------------------------------------------
> 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.