
16.08.2022, 22:31
|
|
Постоянный
Регистрация: 20.03.2021
Сообщений: 666
С нами:
2711257
Репутация:
83
|
|
проблема такова, функция постоянно выдает нули
C++:
Код:
int
readInt
(
std
::
string Section
,
std
::
string Key
)
{
char
str
[
300
]
;
GetPrivateProfileStringA
(
Section
.
c_str
(
)
,
Key
.
c_str
(
)
,
NULL
,
str
,
sizeof
(
str
)
,
"C:\\one.ini"
)
;
return
std
::
stoi
(
str
)
;
}
Код:
Код:
[colors]
one=0xFFFFFF00
two=0xFF0000FF
three=0xFFFF0000
|
|
|