Witam!
Przerabiam trochę menu kolegi tmf z pierwszej książki i napotkałem na problem. Chciałem oryginalną strukturę opisującą menu:
przerobić dodając opcję wyboru języka komunikatów:
Teraz przy próbie odczytu tekstu ze struktury:
dostaję błąd:
Czy ktoś mógłby mi wskazać/naprowadzić gdzie popełniam błąd, bo zdawało mi się że mam pojęcie o wskaźnikach, ale czym dłużej szukam i czytam tym większy mam mętlik w głowie.
Przerabiam trochę menu kolegi tmf z pierwszej książki i napotkałem na problem. Chciałem oryginalną strukturę opisującą menu:
Kod: C / C++
przerobić dodając opcję wyboru języka komunikatów:
Kod: C / C++
Teraz przy próbie odczytu tekstu ze struktury:
Kod: C / C++
dostaję błąd:
Cytat:Error 11 'struct _menuitem' has no member named 'text_ang'
Error 10 'struct _menuitem' has no member named 'text_pl'
Error 4 2238 : no member named 'text_ang' in '_menuitem'
Error 2 2238 : no member named 'text_pl' in '_menuitem'
Warning 1 3545 : cast to 'void *' from smaller integer type 'uint16_t' (aka 'unsigned short')
Warning 3 3545 : cast to 'void *' from smaller integer type 'uint16_t' (aka 'unsigned short')
Warning 5 3545 : cast to 'void *' from smaller integer type 'uint16_t' (aka 'unsigned short')
Warning 6 3545 : cast to 'void *' from smaller integer type 'uint16_t' (aka 'unsigned short')
Warning 7 3545 : cast to 'void *' from smaller integer type 'uint16_t' (aka 'unsigned short')
Warning 8 3545 : cast to 'void *' from smaller integer type 'uint16_t' (aka 'unsigned short')
Warning 9 3545 : cast to 'void *' from smaller integer type 'uint16_t' (aka 'unsigned short')
Czy ktoś mógłby mi wskazać/naprowadzić gdzie popełniam błąd, bo zdawało mi się że mam pojęcie o wskaźnikach, ale czym dłużej szukam i czytam tym większy mam mętlik w głowie.
