XString to char array

53 views
asked Mar 11 in System Integration by Andy
Hi,

In my device, I have an array named userdata (char userdata[10])

and in EW, I have a property string named tmpdata

How to convert the tmpdata type and store into userdata ?

Thanks!

Best Regards,

Andy Dong

1 Answer

0 votes
answered Mar 11 by Paul Banach
 
Best answer

Hello Andy,

please see the section Be careful when exchanging strings. Especially note in the article the usage of the functions EwStringToAnsi() or EwStringToUtf8(). The article also contains code-examples demonstrating the conversion between Embedded Wizard own strings and C char arrays.

Does it help you?

Best regards

Paul Banach

commented Mar 12 by Andy
Hi Paul Banach,

It really helps.

Thank you

Best Regards,

Andy Dong

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...