Форум программистов, компьютерный форум CyberForum.ru

полноэкранный режим консоли - C++

Восстановить пароль Регистрация
 
Рейтинг: Рейтинг темы: голосов - 16, средняя оценка - 4.94
Boogi43
4 / 4 / 0
Регистрация: 25.11.2011
Сообщений: 56
11.02.2012, 11:18     полноэкранный режим консоли #1
Здравствуйте!
Не могли бы подсказать, как программно переходить в полноэкранный режим в консоле?
(Именно переходить, а не получать информацию, является ли режим полноэранным)

Добавлено через 19 минут
Функцию нашёл тут, только возникают ошибки.
Код программы:
C++
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <windows.h>;
#include <wincon.h>;
#include <iostream>;
 
 
using namespace std;
 
 
int main()
  { 
    HANDLE hStdout;
      hStdout = GetStdHandle(STD_OUTPUT_HANDLE);
    DWORD SCR_;
    COORD L;
    
    SCR_=CONSOLE_FULLSCREEN_MODE;
    
    
    SetConsoleDisplayMode(hStdout, SCR_, &L);
     
   system("pause");
   return 0;
}
ошибки:
16 `CONSOLE_FULLSCREEN_MODE' undeclared (first use this function)
19 `SetConsoleDisplayMode' undeclared (first use this function)
Similar
Эксперт
41792 / 34177 / 6122
Регистрация: 12.04.2006
Сообщений: 57,940
11.02.2012, 11:18     полноэкранный режим консоли
Посмотрите здесь:

Графический режим C++
C++ Клавиши F1-F12 в консоли, и работа с мышкой в консоли
Режим компиляции C++
C++ Как сделать полноэкранный вид?
C++ Режим ожидания в С++
После регистрации реклама в сообщениях будет скрыта и будут доступны все возможности форума.
retmas
Жарю без масла
803 / 685 / 143
Регистрация: 13.01.2012
Сообщений: 1,580
11.02.2012, 11:31     полноэкранный режим консоли #2
C
1
2
3
4
5
6
7
8
9
10
11
#include <windows.h>
 
int main(void)
{
    HANDLE hStdout;
    hStdout = GetStdHandle(STD_OUTPUT_HANDLE);
    SetConsoleDisplayMode(hStdout, CONSOLE_FULLSCREEN_MODE, 0);
    Sleep(3000);
    SetConsoleDisplayMode(hStdout, CONSOLE_WINDOWED_MODE, 0);
    return 0;
}
Добавлено через 4 минуты
и добавь препроцессорную директиву _WIN32_WINNT=0x0501, если пишешь не в vs
ШКІПЕР
 Аватар для ШКІПЕР
93 / 93 / 7
Регистрация: 14.04.2010
Сообщений: 280
Записей в блоге: 9
Завершенные тесты: 1
11.02.2012, 11:42     полноэкранный режим консоли #3
Цитата Сообщение от Boogi43 Посмотреть сообщение
16 `CONSOLE_FULLSCREEN_MODE' undeclared (first use this function)
19 `SetConsoleDisplayMode' undeclared (first use this function)
В чем пишите ? В Dev или Code::Blocks ?
Boogi43
4 / 4 / 0
Регистрация: 25.11.2011
Сообщений: 56
11.02.2012, 11:55  [ТС]     полноэкранный режим консоли #4
Цитата Сообщение от ШКІПЕР Посмотреть сообщение
В чем пишите ? В Dev или Code::Blocks ?
В Dev
ШКІПЕР
 Аватар для ШКІПЕР
93 / 93 / 7
Регистрация: 14.04.2010
Сообщений: 280
Записей в блоге: 9
Завершенные тесты: 1
11.02.2012, 13:49     полноэкранный режим консоли #5
Boogi43, в Dev библиотека windows.h немножко иная - в этом суть вашей проблемы. Например, в VS тот же код компилится будет нормально (но только стоит вопрос, буде ли в работать как это требуется... в ХР будет, а в 7... нет).
retmas
Жарю без масла
803 / 685 / 143
Регистрация: 13.01.2012
Сообщений: 1,580
11.02.2012, 13:59     полноэкранный режим консоли #6
Цитата Сообщение от ШКІПЕР Посмотреть сообщение
Dev библиотека windows.h немножко иная - в этом суть вашей проблемы
суть проблемы в том, что надо добавить -D_WIN32_WINNT=0x0501 для gcc
Цитата Сообщение от ШКІПЕР Посмотреть сообщение
буде ли в работать как это требуется... в ХР будет, а в 7... нет
почему?
ШКІПЕР
 Аватар для ШКІПЕР
93 / 93 / 7
Регистрация: 14.04.2010
Сообщений: 280
Записей в блоге: 9
Завершенные тесты: 1
11.02.2012, 14:31     полноэкранный режим консоли #7
Цитата Сообщение от retmas Посмотреть сообщение
почему?
Ну, во-первых, в исходнике Boogi43 после #include иногда не ставится точка с запятой
Во-вторых... консоль во весь экран в 7-ке ? Проверьте сами. В х64 (а этим пользуются чаще... кагбе) так не сработает 100%, за х32 не в курсе.


Добавлено через 3 минуты
Цитата Сообщение от retmas Посмотреть сообщение
суть проблемы в том, что надо добавить -D_WIN32_WINNT=0x0501 для gcc
Для интереса даже проверил - не ведется

Yeah!

Default GCC compiler
Building Makefile: "C:\Projects\c++\program_on_c++_dev\Makefile.win"
make...
mingw32-make.exe -f "Makefile.win" all
g++.exe -c main.cpp -o Objects/MingW/main.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.5/include" -I"C:/Dev-Cpp/include/c++/3.4.5/backward" -I"C:/Dev-Cpp/include/c++/3.4.5/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.5" -I"C:/Dev-Cpp/include" -I"C:/Dev-Cpp/" -I"C:/Dev-Cpp/include/common/wx/msw" -I"C:/Dev-Cpp/include/common/wx/generic" -I"C:/Dev-Cpp/include/common/wx/html" -I"C:/Dev-Cpp/include/common/wx/protocol" -I"C:/Dev-Cpp/include/common/wx/xml" -I"C:/Dev-Cpp/include/common/wx/xrc" -I"C:/Dev-Cpp/include/common/wx" -I"C:/Dev-Cpp/include/common"

main.cpp:2:21: warning: missing whitespace after the macro name

In file included from c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/windef.h:253:0,
from c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/windows.h:48,
from main.cpp:4:
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winnt.h:994:6: error: token "=" is not valid in preprocessor expressions

c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winnt.h:1674:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winnt.h:1717:6: error: token "=" is not valid in preprocessor expressions

In file included from c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/windef.h:253:0,
from c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/windows.h:48,
from main.cpp:4:
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winnt.h:3573:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winnt.h:3739:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winnt.h:3751:6: error: token "=" is not valid in preprocessor expressions

In file included from c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/windef.h:253:0,
from c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/windows.h:48,
from main.cpp:4:
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winnt.h:3842:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winnt.h:3854:6: error: token "=" is not valid in preprocessor expressions
In file included from c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/windows.h:49:0,
from main.cpp:4:
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/wincon.h:19:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/wincon.h:133:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/wincon.h:151:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/wincon.h:155:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/wincon.h:179:6: error: token "=" is not valid in preprocessor expressions

In file included from c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/windows.h:50:0,
from main.cpp:4:
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:206:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:376:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:379:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:387:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:548:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:562:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:567:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:936:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1006:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1049:6: error: token "=" is not valid in preprocessor expressions

c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1062:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1065:6: error: token "=" is not valid in preprocessor expressions
In file included from c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/windows.h:50:0,
from main.cpp:4:
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1102:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1125:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1130:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1138:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1141:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1168:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1171:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1176:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1190:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1207:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1218:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1225:6: error: token "=" is not valid in preprocessor expressions

c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1230:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1240:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1253:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1265:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1272:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1276:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1280:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1293:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1304:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1340:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1356:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1365:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1377:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1414:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1418:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1441:6: error: token "=" is not valid in preprocessor expressions

c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1462:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1478:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1487:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1494:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1514:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1517:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1522:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1525:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1556:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1563:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1567:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1572:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1576:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1588:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1605:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1611:6: error: token "=" is not valid in preprocessor expressions

c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1635:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1651:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1655:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1676:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1691:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1695:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1710:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1719:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1805:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1819:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1824:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1829:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1835:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1848:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1852:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1859:6: error: token "=" is not valid in preprocessor expressions

c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1862:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1865:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1877:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1892:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1900:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1921:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1926:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1929:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1944:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1964:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1977:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:2006:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:2049:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:2052:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:2259:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:2270:6: error: token "=" is not valid in preprocessor expressions

c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:2277:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:2285:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:2298:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:2310:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:2317:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:2322:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:2339:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:2349:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:2354:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:2369:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:2372:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:2420:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:2428:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:2434:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:2437:6: error: token "=" is not valid in preprocessor expressions
In file included from c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/windows.h:52:0,
from main.cpp:4:
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/wingdi.h:165:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/wingdi.h:595:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/wingdi.h:598:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/wingdi.h:850:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/wingdi.h:1321:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/wingdi.h:1330:6: error: token "=" is not valid in preprocessor expressions

c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/wingdi.h:1532:28: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/wingdi.h:1583:28: error: token "=" is not valid in preprocessor expressions
In file included from c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/windows.h:52:0,
from main.cpp:4:
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/wingdi.h:2293:6: error: token "=" is not valid in preprocessor expressions

c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/wingdi.h:2608:5: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/wingdi.h:2690:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/wingdi.h:2708:34: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/wingdi.h:2895:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/wingdi.h:2954:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/wingdi.h:2981:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/wingdi.h:3057:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/wingdi.h:3153:5: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/wingdi.h:3169:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/wingdi.h:3210:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/wingdi.h:3220:6: error: token "=" is not valid in preprocessor expressions
In file included from c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/windows.h:55:0,
from main.cpp:4:
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:147:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:151:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:406:34: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:409:6: error: token "=" is not valid in preprocessor expressions

c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:589:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:606:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:754:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:811:6: error: token "=" is not valid in preprocessor expressions

c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:820:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:831:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:971:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:1006:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:1086:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:1089:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:1094:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:1110:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:1118:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:1130:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:1148:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:1181:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:1187:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:1339:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:1435:6: error: token "=" is not valid in preprocessor expressions

c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:1484:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:1572:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:1582:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:1640:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:1854:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:1947:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:1968:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:1981:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:1985:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:2007:5: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:2023:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:2190:34: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:2236:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:2272:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:2377:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:2382:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:2392:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:2404:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:2408:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:2412:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:2416:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:2741:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:2758:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:3205:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:3214:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:3222:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:3266:6: error: token "=" is not valid in preprocessor expressions

c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:3390:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:3413:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:3425:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:3429:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:3523:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:3583:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:3595:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:3619:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:3651:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:3669:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:3702:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:3713:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:3725:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:3775:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:3793:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:3818:5: error: token "=" is not valid in preprocessor expressions

c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:3821:5: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:3831:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:3858:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:3879:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:3914:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:3932:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:3936:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:3953:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:4000:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:4051:5: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:4079:34: error: token "=" is not valid in preprocessor expressions

c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:4082:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:4087:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:4107:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:4111:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winuser.h:4117:6: error: token "=" is not valid in preprocessor expressions
In file included from c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/windows.h:78:0,
from main.cpp:4:
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/imm.h:23:6: error: token "=" is not valid in preprocessor expressions
In file included from c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/rpc.h:40:0,
from c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/windows.h:82,
from main.cpp:4:
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/rpcdce.h:388:5: error: token "=" is not valid in preprocessor expressions
In file included from c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/windows.h:83:0,
from main.cpp:4:
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/shellapi.h:182:5: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/shellapi.h:211:5: error: token "=" is not valid in preprocessor expressions
In file included from c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/windows.h:86:0,
from main.cpp:4:
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/commdlg.h:119:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/commdlg.h:166:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/commdlg.h:206:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/commdlg.h:352:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/commdlg.h:379:6: error: token "=" is not valid in preprocessor expressions
In file included from c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/windows.h:87:0,
from main.cpp:4:
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winspool.h:17:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winspool.h:398:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winspool.h:524:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winspool.h:628:6: error: token "=" is not valid in preprocessor expressions
In file included from c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/windows.h:87:0,
from main.cpp:4:
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winspool.h:687:6: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winspool.h:780:5: error: token "=" is not valid in preprocessor expressions
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winspool.h:914:6: error: token "=" is not valid in preprocessor expressions

c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winspool.h:924:6: error: token "=" is not valid in preprocessor expressions
In file included from main.cpp:4:0:
c:\program files (x86)\dev-cpp\bin\../lib/gcc/mingw32/4.5.0/../../../../include/windows.h:97:6: error: token "=" is not valid in preprocessor expressions

main.cpp: In function 'int main()':
main.cpp:12:36: error: 'CONSOLE_FULLSCREEN_MODE' was not declared in this scope
main.cpp:12:62: error: 'SetConsoleDisplayMode' was not declared in this scope

mingw32-make.exe: *** [Objects/MingW/main.o] Error 1

Compilation Failed. Make returned 2
retmas
Жарю без масла
803 / 685 / 143
Регистрация: 13.01.2012
Сообщений: 1,580
11.02.2012, 14:50     полноэкранный режим консоли #8
Цитата Сообщение от ШКІПЕР Посмотреть сообщение
так не сработает 100%, за х32 не в курсе
ну в 7ке вообще нет fullscreen консоли. вернее 7ка вроде не поддерживает VGA программы в текстовом режиме. так что не сработает не только так, но скорее всего и "как-то иначе"
з.ы. в прошлом посте я подумал, что имелось ввиду - не скомпилится

Добавлено через 3 минуты
Цитата Сообщение от ШКІПЕР Посмотреть сообщение
Для интереса даже проверил - не ведется
что то я не увидел в строке вызова gcc вот этого -D_WIN32_WINNT=0x0501

Добавлено через 46 секунд
Цитата Сообщение от ШКІПЕР Посмотреть сообщение
main.cpp:2:21: warning: missing whitespace after the macro name
и вот это скорее подтверждает, что вы просто не знаете куда засунуть _WIN32_WINNT=0x0501 или как в коде определить _WIN32_WINNT
ШКІПЕР
 Аватар для ШКІПЕР
93 / 93 / 7
Регистрация: 14.04.2010
Сообщений: 280
Записей в блоге: 9
Завершенные тесты: 1
11.02.2012, 15:20     полноэкранный режим консоли #9
Действительно, сбила фраза препроцессорную директиву, недоперечитал что это параметр компилятору. Беру свои слова обратно - все работает, ну в смысле компилится
Yeah!
Default GCC compiler
Building Makefile: "C:\Projects\c++\program_on_c++_dev\Makefile.win"
make...
mingw32-make.exe -f "Makefile.win" all
g++.exe -c main.cpp -o Objects/MingW/main.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.5/include" -I"C:/Dev-Cpp/include/c++/3.4.5/backward" -I"C:/Dev-Cpp/include/c++/3.4.5/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.5" -I"C:/Dev-Cpp/include" -I"C:/Dev-Cpp/" -I"C:/Dev-Cpp/include/common/wx/msw" -I"C:/Dev-Cpp/include/common/wx/generic" -I"C:/Dev-Cpp/include/common/wx/html" -I"C:/Dev-Cpp/include/common/wx/protocol" -I"C:/Dev-Cpp/include/common/wx/xml" -I"C:/Dev-Cpp/include/common/wx/xrc" -I"C:/Dev-Cpp/include/common/wx" -I"C:/Dev-Cpp/include/common" -D_WIN32_WINNT=0x0501 -fexceptions

g++.exe "Objects/MingW/main.o" -o "Output/MingW/porgram_on_c++.exe" -L"C:/Dev-Cpp/Lib"


Добавлено через 13 минут
Цитата Сообщение от retmas Посмотреть сообщение
вернее 7ка вроде не поддерживает VGA программы в текстовом режиме
Не вроде а точно. Ну тогда эмулятор DosBox или что-то вроде этого. Или сверху к программе эмуляция VGA
Boogi43
4 / 4 / 0
Регистрация: 25.11.2011
Сообщений: 56
11.02.2012, 18:52  [ТС]     полноэкранный режим консоли #10
Вы правы, в семёрке нет полноэкранного режима вообще, но должна же быть функция раскрывающая окно до максимального размера.
denys_l
51 / 51 / 4
Регистрация: 26.09.2011
Сообщений: 186
11.02.2012, 18:58     полноэкранный режим консоли #11
наверняка есть. Размер же окна вручную можно ведь устанавливать.
Мне самому интересно, как сделать программно )
Boogi43
4 / 4 / 0
Регистрация: 25.11.2011
Сообщений: 56
11.02.2012, 18:59  [ТС]     полноэкранный режим консоли #12
То, что описал retmas, тоже не работает.
Про другую Windows.h. А нельзя прикрепить к моему проекту именно нужную и использовать её?
retmas
Жарю без масла
803 / 685 / 143
Регистрация: 13.01.2012
Сообщений: 1,580
11.02.2012, 20:53     полноэкранный режим консоли #13
то, что я описал до этого - fullscreen. не для 7ки.
можете вручную задать размер окна с помощью SetWindowPos
но не забудьте изменить размер буфера экрана
можно также использовать SetWindowPlacement

Добавлено через 1 час 8 минут
C++
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <windows.h>
 
int main(void) 
{ 
    HANDLE hStdout = GetStdHandle(STD_OUTPUT_HANDLE);
    // размеры с потолка
    COORD c = {200, 100};
    SetConsoleScreenBufferSize(hStdout, c);
 
    HWND w = GetConsoleWindow();
 
    WINDOWPLACEMENT wp;
    wp.length = sizeof(WINDOWPLACEMENT);
    GetWindowPlacement(w, &wp);
 
    wp.showCmd = SW_SHOWMAXIMIZED;
    SetWindowPlacement(w, &wp);
    return 0;
}
Boogi43
4 / 4 / 0
Регистрация: 25.11.2011
Сообщений: 56
11.02.2012, 22:13  [ТС]     полноэкранный режим консоли #14
retmas, у меня проблема в том, что он эти функции ну никак не хочет использовать, вот на этот раз что:
Код
Compiler: Default compiler
Executing  g++.exe...
g++.exe "C:\Users\ñêàí\Documents\Test.cpp" -o "C:\Users\ñêàí\Documents\Test.exe"   -g3  -I"C:\Dev-Cpp\include\c++"  -I"C:\Dev-Cpp\include\c++\mingw32"  -I"C:\Dev-Cpp\include\c++\backward"  -I"C:\Dev-Cpp\include"   -L"C:\Dev-Cpp\lib"
C:/Users/ñêàí/Documents/Test.cpp:3:1: warning: "_WIN32_WINNT" redefined
In file included from C:/Dev-Cpp/include/windows.h:48,
                 from C:/Users/ñêàí/Documents/Test.cpp:1:
C:/Dev-Cpp/include/windef.h:20:1: warning: this is the location of the previous definition
C:/Users/ñêàí/Documents/Test.cpp: In function `int main()':
C:/Users/ñêàí/Documents/Test.cpp:14: `GetConsoleWindow' undeclared (first use 
   this function)
retmas
Жарю без масла
803 / 685 / 143
Регистрация: 13.01.2012
Сообщений: 1,580
11.02.2012, 22:25     полноэкранный режим консоли #15
если определяете _WIN32_WINNT в коде, то делайте это до вклчения windows.h или лучше в самом начале. например, так
C++
1
2
#define _WIN32_WINNT 0x0501
#include <windows.h>
но я бы передавал как опцию для препроцессора в команде компиляции
MoreAnswers
Эксперт
37091 / 29110 / 5898
Регистрация: 17.06.2006
Сообщений: 43,301
11.02.2012, 23:24     полноэкранный режим консоли
Еще ссылки по теме:

C++ FPS режим
C++ считывание с консоли ( не с клавы, а именно с консоли)
Графический режим С++ C++

Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
Boogi43
4 / 4 / 0
Регистрация: 25.11.2011
Сообщений: 56
11.02.2012, 23:24  [ТС]     полноэкранный режим консоли #16
retmas, Ура!!! Все функции заработали!! Где ж ты раньше был?!
Yandex
Объявления
11.02.2012, 23:24     полноэкранный режим консоли
Ответ Создать тему
Опции темы

Текущее время: 23:21. Часовой пояс GMT +3.
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
Рейтинг@Mail.ru