sed1991 Опубліковано 22 Вересня, 2012 в 16:00 #1 Опубліковано 22 Вересня, 2012 в 16:00 Підскажіть хто тямить чи можна змінини повідомлення компілятора по помилкам типу: блін синтаксична помилка 1-й клас шо за нафіг капєц а де крапка з комою Ніпанятна шо ти від мене хочеш... ну і т.д. Думаю було б чудово якби компілятор був "живий"
september25 Опубліковано 22 Вересня, 2012 в 16:23 #2 Опубліковано 22 Вересня, 2012 в 16:23 Якщо хочеш серйозно програмувати - не майся дур'ю. Повідомлення про помилки не такі однозначні як це може здаватися на початковому етапі вивчення програмування. Дуже часто повідомлення про помилку каже одне, а насправді причина помилки - зовсім в іншому.
sed1991 Опубліковано 22 Вересня, 2012 в 16:31 Автор #3 Опубліковано 22 Вересня, 2012 в 16:31 ну але все ж
Will Опубліковано 22 Вересня, 2012 в 17:50 #4 Опубліковано 22 Вересня, 2012 в 17:50 неправильний синтаксис "get"
september25 Опубліковано 22 Вересня, 2012 в 17:56 #5 Опубліковано 22 Вересня, 2012 в 17:56 неправильний синтаксис "get" Ви питання ТС читали ???
Shkoder Опубліковано 22 Вересня, 2012 в 23:55 #6 Опубліковано 22 Вересня, 2012 в 23:55 sed1991, можно. берешь, например, hiew (в аттаче) и меняешь в коде все, что нужно. обрати внимание на следующие моменты : строки заканчиваются нулями (в HEX), длина кириллической строки не должна быть больше латинской, не напутай кодировку. если твоя строка меньше, то оставшиеся символы просто замени пробелами - в некоторых компиляторах перед строкой может быть еще и количество символов, которое тоже прийдется править если длина изменилась. если мое объяснение похоже на какое-то шаманство, то сходи на полезный ресурс и почитай статьи для начинающих. september25, о программировании в вопросе вообще ни слова. человек хочет попробовать себя в reverse engineering, что не менее интересно. ps. всегда сохраняй рабочую копию программы, которую модифицируешь hiew5_reg_dos_win32.zip
september25 Опубліковано 25 Вересня, 2012 в 21:12 #7 Опубліковано 25 Вересня, 2012 в 21:12 september25, о программировании в вопросе вообще ни слова. человек хочет попробовать себя в reverse engineering, что не менее интересно.Ну що ж, значить я недооцінив ТС. У мене склалося враження. що людина просто хоче замінити повідомлення компілятора на зрозуміліші для нього ...
sed1991 Опубліковано 30 Вересня, 2012 в 21:03 Автор #8 Опубліковано 30 Вересня, 2012 в 21:03 що людина просто хоче замінити повідомлення компілятора на зрозуміліші для нього ... все правильно зрозумівпо силці скільки всього... а мені треба взнати який файлик редагувати і все... далі якось сам
september25 Опубліковано 30 Вересня, 2012 в 21:31 #9 Опубліковано 30 Вересня, 2012 в 21:31 Насправді це не так просто. Потрібний певний навик для таких справ. Якщо ніколи не тримав в руках редактора шістнадцяткових кодів і тому подібного софту то це може бути чрєвато для твоєї інсталяції Borland. Я так розумію ти лише на початку шляху у світ програмування. Тому краще буде якщо ти відкладеш свою їдею на потім, коли знання в цій сфері стануть трохи глибшими. Якщо ж відкладати не хочеш то можеш глянути оцю статтю http://www.pkgid.ru/...op=view&id=548. Вона тобі дасть загальне уявлення про роботу з редакторами шістнадцяткових кодів. Саме за допомогою його можна замінити тексти повідомлень про помилки які тобі не подобаються на ті що ти хочеш. В якому саме файлі це зробити - не скажу. З Borland'om справи не маю. Почергово відкривай в hex-редакторі (редакторі шістнадцяткових кодів) файли інсталяції Borland і шукай те що тобі потрібне. Якщо получиться - то це буде твій перший маленький взлом.P.S.: Забув додати. Не працюй з файлами інсталяції Borland напряму. Скопіюй їх кудись і працюй з копіями.
sed1991 Опубліковано 30 Вересня, 2012 в 21:59 Автор #10 Опубліковано 30 Вересня, 2012 в 21:59 якщо подумати логічно то борланд створювуали ж люди і назвали той файлик типу error mesage чи типу того...І ще він повинен бути трічечки великим тобто не 2-3 кілобайти...................щось знайшов/* SCCSWHAT( "@(#)c1.err 2.29 88/02/25 18:18:00 " ) */ /* fatals */1001 "Internal Compiler Error\n\t\t(compiler file '%s', line %d)\n\t\tContact Microsoft Technical Support"1002 "out of heap space"1003 "error count exceeds %d; stopping compilation"1004 "unexpected EOF"1005 "string too big for buffer"1006 "write error on compiler intermediate file"1007 "unrecognized flag '%s' in '%s'"1008 "no input file specified"1009 "compiler limit : macros too deeply nested"1010 "compiler limit : macro expansion too big"1012 "bad parenthesis nesting - missing '%c'"1013 "cannot open source file '%s'"1014 "too many include files"1015 "cannot open include file '%s'"1016 "#if[n]def expected an identifier"1017 "invalid integer constant exp[b][/b]ression"1018 "unexpected '#elif'"1019 "unexpected '#else'"1020 "unexpected '#endif'"1021 "bad preprocessor command '%s'"1022 "expected '#endif'"1023 "no int size specified"1024 "no ptr size specified"1025 "no function size specified"1026 "parser stack overflow, please simplify your program"1027 "DGROUP data allocation exceeds 64K" /* QC, c23 */1028 "%s segment allocation exceeds 64K" /* QC */1031 "compiler limit : function calls too deeply nested" /* QC, c23 */1032 "cannot open object listing file '%s'" /* QC, c23 */1035 "exp[b][/b]ression too complex, please simplify" /* QC, c23 */1037 "cannot open object file '%s'" /* QC, c23 */1041 "cannot open compiler intermediate file - no more files"1042 "cannot open compiler intermediate file - no such file or directory"1043 "cannot open compiler intermediate file"1044 "out of disk space for compiler intermediate file"1045 "floating point overflow"1047 "too many %s flags, '%s'"1048 "unknown option '%c' in '%s'"1049 "invalid numerical argument '%s'"1052 "too many #if/#ifdef's"1053 "compiler limit : struct/union nesting"1054 "compiler limit : initializers too deeply nested"1055 "compiler limit : out of keys"1056 "compiler limit : out of macro expansion space"1057 "unexpected EOF in macro expansion (missing ')'?)"1059 "out of near heap space"1060 "out of far heap space"1061 "compiler limit : blocks too deeply nested" /* QC */1062 "error writing to preprocessor output file"1063 "compiler limit : compiler stack overflow" /* QC */1064 "compiler limit : identifier overflowed internal buffer"1065 "compiler limit : declarator too complex"1000 "UNKNOWN FATAL ERROR\n\t\tContact Microsoft Technical Support" /* errors */2001 "newline in constant"2002 "out of macro actual parameter space"2003 "expected 'defined id'"2004 "expected 'defined(id)'"2005 "#line expected a line number, found '%s'"2006 "#include expected a file name, found '%s'"2007 "#define syntax"2008 "'%c' : unexpected in macro definition"2009 "reuse of macro formal '%s'"2010 "'%c' : unexpected in formal list"2011 "'%s' : definition too big"2012 "missing name following '<'"2013 "missing '>'"2014 "preprocessor command must start as first non-whitespace"2015 "too many chars in constant"2016 "no closing single quote"2017 "illegal escape sequence"2018 "unknown character '0x%x'"2019 "expected preprocessor command, found '%c'"2020 "bad octal number '%c'"2021 "expected exponent value, not '%c'"2022 "'%ld' : too big for char"2023 "divide by 0"2024 "mod by 0"2025 "'%s' : enum/struct/union type redefinition"2026 "'%s' : member of enum redefinition"2028 "struct/union member needs to be inside a struct/union"2029 "'%Fs' : bit-fields only allowed in structs"2030 "'%Fs' : struct/union member redefinition"2031 "'%Fs' : function cannot be struct/union member"2032 "'%Fs' : base type with near/far/huge not allowed"2033 "'%Fs' : bit-field cannot have indirection"2034 "'%Fs' : bit-field type too small for number of bits"2035 "enum/struct/union '%Fs' : unknown size"2036 "left of '%s%s' must have a struct/union type"2037 "left of '%s' specifies undefined struct/union '%Fs'"2038 "'%s' : not struct/union member"2039 "'->' requires struct/union pointer"2040 "'.' requires struct/union name"2042 "signed/unsigned keywords mutually exclusive"2043 "illegal break"2044 "illegal continue"2045 "'%s' : label redefined"2046 "illegal case"2047 "illegal default"2048 "more than one default"2050 "non-integral switch exp[b][/b]ression"2051 "case exp[b][/b]ression not constant"2052 "case exp[b][/b]ression not integral"2053 "case value %d already used"2054 "expected '(' to follow '%Fs'"2055 "expected formal parameter list, not a type list"2056 "illegal exp[b][/b]ression"2057 "expected constant exp[b][/b]ression"2058 "constant exp[b][/b]ression is not integral"2059 "syntax error : '%s'"2060 "syntax error : EOF"2061 "syntax error : identifier '%s'"2062 "type '%s' unexpected"2063 "'%s' : not a function"2064 "term does not evaluate to a function"2065 "'%s' : undefined"2066 "cast to function returning . . . is illegal"2067 "cast to array type is illegal"2068 "illegal cast"2069 "cast of 'void' term to non-void"2070 "illegal sizeof operand"2071 "'%Fs' : bad storage class"2072 "'%Fs' : initialization of a function"2073 "'%Fs' : cannot initialize array in function"2074 "'%Fs' : cannot initialize struct/union in function"2075 "'%Fs' : array initialization needs curly braces"2076 "'%Fs' : struct/union initialization needs curly braces"2077 "non-integral field initializer '%Fs'"2078 "too many initializers"2079 "'%Fs' uses undefined struct/union '%Fs'"2082 "redefinition of formal parameter '%Fs'"2083 "array '%Fs' already has a size"2084 "function '%Fs' already has a body"2085 "'%Fs' : not in formal parameter list"2086 "'%Fs' : redefinition"2087 "'%Fs' : missing subscript"2088 "use of undefined enum/struct/union '%s'"2089 "typedef specifies a near/far function"2090 "function returns array"2091 "function returns function"2092 "array element type cannot be function"2093 "cannot initialize a static or struct with address of automatic vars"2094 "label '%Fs' was undefined"2095 "'%Fs' : actual has type void : parameter %d"2096 "struct/union comparison illegal"2097 "illegal initialization"2098 "non-address exp[b][/b]ression"2099 "non-constant offset"2100 "illegal indirection"2101 "'&' on constant"2102 "'&' requires lvalue"2103 "'&' on register variable"2104 "'&' on bit-field ignored"2105 "'%s' needs lvalue"2106 "'%s' : left operand must be lvalue"2107 "illegal index, indirection not allowed"2108 "non-integral index"2109 "subscript on non-array"2110 "'+' : 2 pointers"2111 "pointer + non-integral value"2112 "illegal pointer subtraction"2113 "'-' : right operand pointer"2114 "'%s' : pointer on left; needs integral right"2115 "'%s' : incompatible types"2116 "'%s' : bad %s operand"2117 "'%s' : illegal for struct/union"2118 "negative subscript"2119 "'typedefs' both define indirection"2120 "'void' illegal with all types"2121 "typedef specifies different enum"2122 "typedef specifies different struct"2123 "typedef specifies different union"2125 "%Fs : allocation exceeds 64K" /* QC, c23 */2126 "%Fs : auto allocation exceeds %s" /* QC, c23 */2127 "parameter allocation exceeds 32K" /* QC, c23 */2130 "#line expected a string containing the file name, found '%s'"2131 "attributes specify more than one near/far/huge"2132 "syntax error : unexpected identifier"2133 "array '%Fs' : unknown size"2134 "'%Fs' : struct/union too large"2135 "missing ')' in macro expansion"2137 "empty character constant"2138 "unmatched close comment '*/'"2139 "type following '%s' is illegal"2140 "argument type cannot be function returning . . ."2141 "value out of range for enum constant"2142 "ellipsis requires three periods"2143 "syntax error : missing '%s' before '%s'"2144 "syntax error : missing '%s' before type '%Fs'"2145 "syntax error : missing '%s' before identifier"2146 "syntax error : missing '%s' before identifier '%s'"2147 "unknown size"2148 "array too large"2149 "'%Fs' : named bit-field cannot have 0 width"2150 "'%Fs' : bit-field must have type int, signed int, or unsigned int"2151 "more than one cdecl/fortran/pascal attribute specified"2152 "'%s' : pointers to functions with different attributes"2153 "hex constants must have at least 1 hex digit"2154 "'%s' : does not refer to a segment"2155 "'%s' : already in a segment"2156 "pragma must be at outer level"2157 "'%s' : must be declared before use in pragma list"2158 "'%s' : is a function"2159 "more than one storage class specified"2160 "## cannot occur at the beginning of a macro definition"2161 "## cannot occur at the end of a macro definition"2162 "expected macro formal parameter"2163 "'%s' : not available as an intrinsic"2164 "'%s' : intrinsic was not declared"2165 "'%s' : cannot modify pointers to data"2166 "lval specifies 'const' object"2167 "'%Fs' : too many actual parameters for intrinsic"2168 "'%Fs' : too few actual parameters for intrinsic"2169 "'%Fs' : is an intrinsic, it cannot be defined"2170 "'%s' : intrinsic not declared as a function"2171 "'%s' : bad operand"2172 "'%Fs' : actual is not a pointer : parameter %d"2173 "'%Fs' : actual is not a pointer : parameter %d, parameter list %d"2174 "'%Fs' : actual has type void : parameter %d, parameter list %d"2175 "'%Fs' : unresolved external" /* QC */2176 "static far data not supported" /* QC */2177 "constant too big"2178 "'%s' : storage class for same_seg variables must be 'extern'"2179 "'%Fs' : was used in same_seg, but storage class is no longer 'extern'"2180 "controlling exp[b][/b]ression has type 'void'"2181 "pragma requires command line option '%s'" /* QC */2182 "'%Fs' : 'void' on variable"2183 "'%Fs' : 'interrupt' function must be 'far'"2184 "'%Fs' : '%s' function cannot be 'pascal/fortran'"2186 "'%Fs' : 'saveregs/interrupt' modifiers mutually exclusive"2187 "cast of near function pointer to far function pointer"2188 "#error : %s"2190 "'%s' : is a text segment"2191 "'%s' : is a data segment"2192 "'%s' : function has already been defined"2000 "UNKNOWN ERROR\n\t\tContact Microsoft Technical Support" /* warnings */4001 "macro '%s' requires parameters"4002 "too many actual parameters for macro '%s'"4003 "not enough actual parameters for macro '%s'"4004 "missing close parenthesis after 'defined'"4005 "'%s' : redefinition"4006 "#undef expected an identifier"4009 "string too big, trailing chars truncated"4011 "identifier truncated to '%s'"4012 "float constant in a cross compilation"4013 "constant too big"4014 "'%Fs' : bit-field type must be unsigned"4015 "'%Fs' : bit-field type must be integral"4016 "'%s' : no function return type, using 'int' as default"4017 "cast of int exp[b][/b]ression to far pointer"4020 "'%Fs' : too many actual parameters"4021 "'%Fs' : too few actual parameters"4022 "'%Fs' : pointer mismatch : parameter %d"4024 "'%Fs' : different types : parameter %d"4025 "function declaration specified variable argument list"4026 "function was declared with formal argument list"4027 "function was declared without formal argument list"4028 "parameter %d declaration different"4029 "declared parameter list different from definition"4030 "first parameter list is longer than the second"4031 "second parameter list is longer than the first"4032 "unnamed struct/union as parameter"4033 "function must return a value"4034 "sizeof returns 0"4035 "'%Fs' : no return value"4036 "unexpected formal parameter list"4037 "'%Fs' : formal parameters ignored"4038 "'%Fs' : formal parameter has bad storage class"4039 "'%Fs' : function used as an argument"4040 "near/far/huge on '%Fs' ignored"4041 "formal parameter '%s' is redefined"4042 "'%Fs' : has bad storage class"4044 "huge on '%Fs' ignored, must be an array"4045 "'%s' : array bounds overflow"4046 "'&' on function/array, ignored"4047 "'%s' : different levels of indirection"4048 "array's declared subscripts different"4049 "'%s' : indirection to different types"4051 "data conversion"4052 "different enum types"4053 "at least one void operand"4060 "conversion of long address to short address" /* QC, c23 */4061 "long/short mismatch in argument : conversion supplied" /* QC, c23 */4062 "near/far mismatch in argument : conversion supplied" /* QC, c23 */4067 "unexpected characters following '%s' directive - newline expected"4068 "unknown pragma"4071 "'%Fs' : no function prototype given"4074 "non standard extension used - '%s'"4075 "size of switch exp[b][/b]ression or case constant too large - converted to int"4076 "'%s' : may be used on integral types only"4077 "unknown check_stack option"4079 "unexpected token '%s'"4080 "expected 'identifier' for segment name, found '%s'"4081 "expected a comma, found '%s'"4082 "expected an identifier, found '%s'"4083 "expected '(', found '%s'"4084 "expected a pragma keyword, found '%s'"4085 "expected [on | off]"4086 "expected [1 | 2 | 4]"4087 "'%Fs' : declared with 'void' parameter list"4088 "'%Fs' : pointer mismatch : parameter %d, parameter list %d"4089 "'%Fs' : different types : parameter %d, parameter list %d"4090 "different 'const' attributes"4091 "no symbols were declared"4092 "untagged enum/struct/union declared no symbols"4093 "unescaped newline in character constant in non-active code"4094 "unexpected newline"4095 "expected ')', found '%s'"4096 "huge treated as far" /* QC */4098 "void function returning a value"4099 "expected ')', (too many arguments?)"4100 "'%Fs' : unreferenced formal parameter"4101 "'%Fs' : unreferenced local variable"4102 "'%Fs' : unreferenced label"4103 "'%Fs' : function definition used as prototype"4104 "'%s' : near data in same_seg pragma, ignored"4105 "'%Fs' : code modifiers only on function or pointer to function"4106 "pragma requires integer between 1 and 127"4107 "pragma requires integer between 15 and 255"4108 "pragma requires integer between 79 and 132"4109 "unexpected identifier '%s'"4110 "unexpected token 'int constant'"4111 "unexpected token 'string'"4112 "macro name '%s' is reserved, %s ignored"4113 "function parameter lists differed"4000 "UNKNOWN WARNING\n\t\tContact Microsoft Technical Support"файлик RCPP.ERR лежить C:\Borland\BORLANDC\BIN
september25 Опубліковано 30 Вересня, 2012 в 22:03 #11 Опубліковано 30 Вересня, 2012 в 22:03 Спробуй замінити якесь повідомлення про помилку своїм. Експериментуй! Пробуй! Лише не забудь зробити резервну копію файлу. Вона тобі може пригодитися!
sed1991 Опубліковано 30 Вересня, 2012 в 22:09 Автор #12 Опубліковано 30 Вересня, 2012 в 22:09 резерви є а от з експериментами щось не виходить...
september25 Опубліковано 30 Вересня, 2012 в 22:12 #13 Опубліковано 30 Вересня, 2012 в 22:12 Ну так ніхто ж і не казав, що буде легко ...А чому з експериментами не виходить?
sed1991 Опубліковано 30 Вересня, 2012 в 23:45 Автор #14 Опубліковано 30 Вересня, 2012 в 23:45 не хоче міняти і все я вже купу файлів перерив...
sed1991 Опубліковано 1 Жовтня, 2012 в 00:12 Автор #15 Опубліковано 1 Жовтня, 2012 в 00:12 А я вже хотів писати шо ви мене вінхешом лякаєте
sed1991 Опубліковано 16 Листопада, 2012 в 20:14 Автор #16 Опубліковано 16 Листопада, 2012 в 20:14 забив на це діло так як є чим занятись
Рекомендовані повідомлення
Заархівовано
Ця тема знаходиться в архіві та закрита для подальших відповідей.