On Thu, 18 Dec 2008 20:29:30 +0100, Danny Backx <danny.ba...@scarlet.be>
wrote:
> Looks clean :-)
> 
> Have you checked whether windres still works with other existing RC
> files ?
> 
>       Danny
> 
yes I ckeched and now we support all configurations, for instance if we
take the HelloSP as example :

NO COMMA:
----------

ID_MENU SHMENUBAR
BEGIN
    0,
    1,
    I_IMAGENONE, IDM_EXIT, TBSTATE_ENABLED, 
                  TBSTYLE_BUTTON | TBSTYLE_AUTOSIZE, IDS_OK, 0, NOMENU
END


COMMA:
------

ID_MENU SHMENUBAR
BEGIN
    0,
    1,
    I_IMAGENONE, IDM_EXIT, TBSTATE_ENABLED, 
                  TBSTYLE_BUTTON | TBSTYLE_AUTOSIZE, IDS_OK, 0, NOMENU,
END



Actually now windres has the same behavior as Visual RC, for instance you
can write :


ID_MENU SHMENUBAR
BEGIN
    0,,,,,,,,,,,
    1,
    I_IMAGENONE, IDM_EXIT, TBSTATE_ENABLED, 
                  TBSTYLE_BUTTON | TBSTYLE_AUTOSIZE, IDS_OK, 0, NOMENU,
END

Now this is valid and comma will be silently eaten ...








> On Thu, 2008-12-18 at 13:36 +0100, mosfet wrote:
>> Ok one windres fix it and he will commit it into binutils:
>> 
>> Index: src/binutils/rcparse.y
>> ===================================================================
>> --- src.orig/binutils/rcparse.y
>> +++ src/binutils/rcparse.y
>> @@ -1248,6 +1248,10 @@ rcdata_data:
>>          $1.last->next = ri;
>>          $$.last = ri;
>>        }
>> +    | rcdata_data ','
>> +      {
>> +        $$=$1;
>> +      }
>>      ;
>>  
>>  /* Stringtable resources.  */
>> 
>> Danny could you patch cegcc binutils ?
>> Thanks.
>> 
>> 
>> 
>> 
>> 
>> On Wed, 17 Dec 2008 00:13:32 +0100, Danny Backx <danny.ba...@scarlet.be>
>> wrote:
>> > It probably is but I don't have the time for it right now.
>> > 
>> >    Danny
>> > 
>> > On Tue, 2008-12-16 at 21:37 +0100, mosfet wrote:
>> >> Hum actually it works but couldnt' be possible to fix windres to
>> >> accept
>> >> this syntax with comma ?
>> >> 
>> >> 
>> >> 
>> >> 
>> >> On Tue, 16 Dec 2008 17:23:54 +0100, Danny Backx
>> >> <danny.ba...@scarlet.be>
>> >> wrote:
>> >> > You need to make sure that you have the right macros defined.
Here's
>> >> > a
>> >> > Makefile that works for me :
>> >> > TARGET=arm-mingw32ce
>> >> > CC=     ${TARGET}-gcc ${CFLAGS}
>> >> > CCC=    ${TARGET}-g++ ${CFLAGS}
>> >> > CFLAGS= -D_WIN32_WCE=0x0500 -D_WIN32_IE=0x0500
>> >> > WINDRES=        ${TARGET}-windres ${CFLAGS}
>> >> > 
>> >> > hellosp.exe:    hellosp.o hellosp.rsc
>> >> >         ${CCC} -o hellosp.exe hellosp.o hellosp.rsc -lcommctrl
>> >> > -laygshell
>> >> >         
>> >> > hellosp.o:      hellosp.cpp
>> >> >         ${CCC} -c hellosp.cpp
>> >> > 
>> >> > hellosp.rsc:    hellosp.rc
>> >> >         ${WINDRES} hellosp.rc hellosp.rsc
>> >> > 
>> >> > 
>> >> > Also there's a couple of small changes to make to the sources, see
>> >> > these
>> >> > diffs.
>> >> > 
>> >> > Note that this is an example from the (excellent) Boling book on
>> >> > programming Windows CE.
>> >> > 
>> >> >         Danny
>> >> > 
>> >> > *** orig/hellosp.cpp    2008-12-16 17:21:52.000000000 +0100
>> >> > --- hellosp.cpp 2008-12-16 17:15:29.000000000 +0100
>> >> > ***************
>> >> > *** 14,19 ****
>> >> > --- 14,23 ----
>> >> >   const TCHAR szAppName[] = TEXT("HelloSP");
>> >> >   HINSTANCE hInst;                      // Program instance handle
>> >> >   
>> >> > + extern "C" {
>> >> > +     void SHSetNavBarText(HWND, wchar_t *);
>> >> > + };
>> >> > + 
>> >> >   // Message dispatch table for MainWindowProc
>> >> >   const struct decodeUINT MainMessages[] = {
>> >> >       WM_CREATE, DoCreateMain,
>> >> > *** orig/hellosp.rc     2008-12-16 17:21:52.000000000 +0100
>> >> > --- hellosp.rc  2008-12-16 17:20:36.000000000 +0100
>> >> > ***************
>> >> > *** 6,12 ****
>> >> >  
>> >>
//======================================================================
>> >> >   #include "windows.h"                 // Windows stuff
>> >> >   #include "aygshell.h"                // Pocket PC stuff
>> >> > ! #include "HelloSP.h"                 // Program-specific stuff
>> >> >   
>> >> >  
>> >>
//----------------------------------------------------------------------
>> >> >   // Icons and bitmaps
>> >> > --- 6,13 ----
>> >> >  
>> >>
//======================================================================
>> >> >   #include "windows.h"                 // Windows stuff
>> >> >   #include "aygshell.h"                // Pocket PC stuff
>> >> > ! #include "hellosp.h"                 // Program-specific stuff
>> >> > ! #include "commctrl.h"
>> >> >   
>> >> >  
>> >>
//----------------------------------------------------------------------
>> >> >   // Icons and bitmaps
>> >> > ***************
>> >> > *** 18,24 ****
>> >> >       0,
>> >> >       1,
>> >> >       I_IMAGENONE, IDM_EXIT, TBSTATE_ENABLED, 
>> >> > !                   TBSTYLE_BUTTON | TBSTYLE_AUTOSIZE, IDS_OK, 0,
>> >> > NOMENU,
>> >> >   END
>> >> >   
>> >> >   STRINGTABLE DISCARDABLE
>> >> > --- 19,25 ----
>> >> >       0,
>> >> >       1,
>> >> >       I_IMAGENONE, IDM_EXIT, TBSTATE_ENABLED, 
>> >> > !                   TBSTYLE_BUTTON | TBSTYLE_AUTOSIZE, IDS_OK, 0,
>> >> > NOMENU
>> >> >   END
>> >> >   
>> >> >   STRINGTABLE DISCARDABLE
>> >> > 
>> >> > On Mon, 2008-12-15 at 13:46 -0600, Jared Waltzer wrote:
>> >> >> I am trying to compile the example here with the mingw32ce
>> >> >> compiler:
>> >> >> http://msdn.microsoft.com/en-us/library/ms931632.aspx
>> >> >> 
>> >> >> I get a syntax error in the .rc file. Removing the rc file I get
an
>> >> >> undefined reference for SHCreateMenuBar. Am I doing something
>> >> >> wrong,
>> >> >> or is this not supported at this point? Any suggestions for
>> >> >> creating
>> a
>> >> >> smartphone application with cegcc would be greatly appreciated.
>> >> >> 
>> >> >> jared
>> >> >>
>> >>
>>
------------------------------------------------------------------------------
>> >> >> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las
Vegas,
>> >> >> Nevada.
>> >> >> The future of the web can't happen without you.  Join us at MIX09
>> >> >> to
>> >> help
>> >> >> pave the way to the Next Web now. Learn more and register at
>> >> >>
>> >>
>>
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
>> >> >> _______________________________________________ Cegcc-devel
mailing
>> >> >> list
>> >> >> Cegcc-devel@lists.sourceforge.net
>> >> >> https://lists.sourceforge.net/lists/listinfo/cegcc-devel
>> >> >
>> >> 
>> >>
>>
------------------------------------------------------------------------------
>> >> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
>> >> Nevada.
>> >> The future of the web can't happen without you.  Join us at MIX09 to
>> help
>> >> pave the way to the Next Web now. Learn more and register at
>> >>
>>
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
>> >> _______________________________________________
>> >> Cegcc-devel mailing list
>> >> Cegcc-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/cegcc-devel
>> >> 
>> >
>> 
>
-- 
Vincent R.

------------------------------------------------------------------------------
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to