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

GUI X gx_prompt_text_set with string in C++

$
0
0

Hello,

i'm trying to set a text in a prompt. If i have a char array it's no problem.

I want to take a string is ist possible? I work in C++

 

I tried this, but it doesnt work:

#include <string>

string Test = "hello";

gx_prompt_create(&prompt, "myprompt", &window, GX_ID_NONE, styletmp, 5, &mysize);

gx_prompt_text_set(&myprompt, Test.c_str());

 

Is there something wrong or are there other possibilities to work with prompts and strings?

 

Best Regards,

Matthias


Viewing all articles
Browse latest Browse all 5781

Trending Articles



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