16.11.2018, 04:59
hello, I have a problem when compiling; As you can see, my language is not English, I speak Spanish, so when I use accents, such as "ъ", my program is frozen.
I program in a modular way, use define in a different file than the functions, then, when using a define in a file, for example:
and when using format in another file which uses the previous define, for example:
the program is frozen, but when you remove the accents or signs like "Ў", which are not in the English language, everything works fine.
however, when configuring the program language in Spanish, and placing the define and the function in the same file, there is no problem. that is why I came to the conclusion that it is a problem of modular programming.
(before answer this, I have both files configured in Spanish, I do not know why this error is due)
I program in a modular way, use define in a different file than the functions, then, when using a define in a file, for example:
Код:
#define server_name "example with ъ"
Код:
format (hostname, sizeof hostname, "hostname% s", server_name); SendRconCommand (hostname);
however, when configuring the program language in Spanish, and placing the define and the function in the same file, there is no problem. that is why I came to the conclusion that it is a problem of modular programming.
(before answer this, I have both files configured in Spanish, I do not know why this error is due)