Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 5781

RE: gx_prompt_text_get usage

$
0
0

Hello Laser,

gx_prompt_text_get takes the string from the pointer inside prompt control struct and copies that string to your destination. Your code is not allocating any destination, just a pointer to a character. You should replace GX_CHAR * text1; with GX_CHAR text1[32]; in order to allocate 32 bytes for the string destination. &text1 will still be a valid pointer to pointer as array symbol without index resolves to a pointer automatically. You should also make sure that gx_system_widget_find finds your widget successfully by checking the return value from the function.

Regards


Viewing all articles
Browse latest Browse all 5781

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>