FYI : I've committed based mostly on Jacek's input. Danny
On Sat, 2007-10-13 at 12:44 +0100, Pedro Alves wrote: > > On Fri, 2007-10-12 at 15:31 +0200, Jacek M. Holeczek wrote: > >>> I don't see anything fundamentally different on the non-CE version, > >> Well, I do. > >> Any attempt to call the "ChangeDisplaySettingsEx" with use of the "non-CE" > >> DEVMODE version (as you name it) returns an error. After many many hours > >> of fights ... I discovered that the DEVMODEW structure was completely > >> different from what WinCE expected. After I "patched" it, my code started > >> to work. > > I didn't make myself clear, I guess. I was not saying not to change it :) > > I wrote: > >I don't see anything fundamentally different on the non-CE version, > >or are the _ANONYMOUS_UNION/_ANONYMOUS_STRUCT not doing their job? > > I was refering specifically to the anonymous union/structs (which are > already in place), which allow you to have this: > > struct A > { > int tag; > int field1; > int field2; > int field3; > }; > > ... then, later you want to extend/tweak the struct, perhaps adding a > different tag, which has other fields of interest, and some others > unused. You can do this with gcc: > > struct A > { > int tag; > union > { > struct > { > int field1; > int field2; > int field3; > }; > int member1; > }; > }; > > > And this will still work: > struct A a; > a.field1 = 0; > > Looks very close to what was done in DEVMODE for 9x/NT, doesn't it? > > Danny Backx wrote: > > Another way to code this might be the patch I'm attaching now. It > > removes the duplicate definition which is on MSDN but instead merges the > > differences. > > Either that, or something like the attached would be fine. > > Cheers, > Pedro Alves > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ Cegcc-devel mailing list > Cegcc-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/cegcc-devel -- Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info
signature.asc
Description: This is a digitally signed message part
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel