Hi, I am trying to play a bit with arm-wince-mingw32ce (0.50-cygwin). I'd like to compile a piece of code which does "screen rotation". It is based on the "Pocket PC Screen Rotation" example code: http://www.codeproject.com/ce/pocketscreenrotation.asp and the "Rotating the Contents of the Screen" explanations: http://msdn2.microsoft.com/en-us/library/aa452713.aspx The detailed explanations about ChangeDisplaySettingsEx can be found here: http://msdn2.microsoft.com/en-us/library/ms908108.aspx
When I try to compile the code, I get a message that the symbols related to screen orientation are not defined: DMDO_0, DMDO_90, DMDO_180, DMDO_270, DM_DISPLAYQUERYORIENTATION, DM_DISPLAYORIENTATION. So, I am trying to define them myself: --------------------------------------------------------------------- enum DMD { DMDO_0 = 0, DMDO_90 = 1, DMDO_180 = 2, DMDO_270 = 4 }; enum DM_Fields { DM_DISPLAYORIENTATION = 0x00800000L, DM_DISPLAYQUERYORIENTATION =0x01000000L }; --------------------------------------------------------------------- Can anybody verify that it is correct? (I have also seen source code, in the Internet, in which people define, for example, DMDO_270=3, and/or DM_DISPLAYORIENTATION=0x00000080.) However, then the linker complains that the ChangeDisplaySettingsExW function is missing (I'm new to this whole business, so excuse my silly question - why, if I use ChangeDisplaySettingsEx in my source code, the linker complains about ChangeDisplaySettingsExW? What's this "W" in the function's name?) Best regards, Thanks in advance, Jacek. ------------------------------------------------------------------------- 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