Hi,
I call GUI_LANG_GetTextBuffered() to get a text.
In some special case in my corresponding Get Data function I must return 0 (because of a failure).
I trusted GUI_LANG_GetTextBuffered() will then return with 1 (= error) to handle this case.
But in fact GUI_LANG_GetTextBuffered() returns 0 (= success). This is fatal, because this deceives a valid text in the buffer. But it isnt.
Do I something wrong?
How can I return an error within the GetData function back to emWin, so that emWin is able to handle this appropriately and pass the error up to ...GetTextBuffered()?
Best regards
Matz
I call GUI_LANG_GetTextBuffered() to get a text.
In some special case in my corresponding Get Data function I must return 0 (because of a failure).
I trusted GUI_LANG_GetTextBuffered() will then return with 1 (= error) to handle this case.
But in fact GUI_LANG_GetTextBuffered() returns 0 (= success). This is fatal, because this deceives a valid text in the buffer. But it isnt.
Do I something wrong?
How can I return an error within the GetData function back to emWin, so that emWin is able to handle this appropriately and pass the error up to ...GetTextBuffered()?
Best regards
Matz