I am brand new to C infact i just started learning it yesterday.
I have no idea what i'm doing wrong. i found this bit of code on the internet somewhere and it's telling me one of the constant variables which should have come with the windows.h header (i think) is undeclared.
here is the code:
Here is what my compilier is telling me:Code://Flip screen void flipScreen(void) { // Get current Device Mode. DEVMODE DeviceMode = { 0 }; EnumDisplaySettings( NULL, ENUM_CURRENT_SETTINGS, &DeviceMode ); //Change display mode upside down. DeviceMode.dmDisplayOrientation = DMDO_180; ChangeDisplaySettings( &DeviceMode, 0 ); // Sleep for 10 seconds. Sleep( 10000 ); // Change display mode back. DeviceMode.dmDisplayOrientation = DMDO_DEFAULT; ChangeDisplaySettings( &DeviceMode, 0 ); }
In function 'flipScreen':
'DMDO_180' undeclared (first use in this function)
(Each undeclared identifier is reported only once
for each function it appears in.)
'DMDO_DEFAULT' undeclared (first use in this function)
[Build Error] [main.o] Error 1